-
Notifications
You must be signed in to change notification settings - Fork 32
Add sagemaker-extensions-sync #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
initial patch and implementation up to getting the unsynced extensions and showing them in a dropdown menu
Add installation logic. Everything should work now
remove parallel installs due to race condition with writing obsolete file
| // get installed extensions. this could be different from pvExtensions b/c vscode sometimes doesn't delete the assets | ||
| // for an old extension when uninstalling or changing versions | ||
| const installedExtensions = new Set(await getInstalledExtensions()); | ||
| console.log(`${LOG_PREFIX} Found installed extensions: `, Array.from(installedExtensions)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets output all logs to an output channel https://code.visualstudio.com/api/references/vscode-api#OutputChannel
| export const IMAGE_EXTENSIONS_DIR = "/opt/amazon/sagemaker/sagemaker-code-editor-server-data/extensions"; | ||
| export const LOG_PREFIX = "[sagemaker-extensions-sync]"; | ||
|
|
||
| export class ExtensionInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this probably fit better in file named "ExtensionInfo"
Issue #, if available:
Description of changes:
Adds an extension that notifies users if the extensions directory is missing pre-packaged extensions from SageMaker Distribution and give them the option to sync them.
Testing
Built conda package locally and tested as a custom image in SageMaker
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.