Skip to content

Conversation

@aws-pangestu
Copy link
Contributor

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.

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
@aws-pangestu aws-pangestu requested a review from a team as a code owner April 11, 2025 07:55
// 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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export const IMAGE_EXTENSIONS_DIR = "/opt/amazon/sagemaker/sagemaker-code-editor-server-data/extensions";
export const LOG_PREFIX = "[sagemaker-extensions-sync]";

export class ExtensionInfo {
Copy link
Contributor

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"

@aws-pangestu aws-pangestu merged commit 1b62e92 into aws:main Apr 14, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants