Skip to content
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

Disable auto update for CodeEditor extensions #492

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

zuoyuanh
Copy link
Contributor

Description of changes:

Disable auto update for CodeEditor extensions

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -101,7 +101,8 @@ RUN \
sagemaker-code-editor --install-extension "${ext}" --extensions-dir "${extensionloc}" --server-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-server-data --user-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-user-data; \
done \
# Copy the settings
&& cp /etc/code-editor/code_editor_machine_settings.json /opt/amazon/sagemaker/sagemaker-code-editor-server-data/data/Machine/settings.json
&& cp /etc/code-editor/code_editor_machine_settings.json /opt/amazon/sagemaker/sagemaker-code-editor-server-data/data/Machine/settings.json \
&& cp /etc/code-editor/code_editor_user_settings.json /opt/amazon/sagemaker/sagemaker-code-editor-server-data/data/User/settings.json
Copy link
Contributor

@aws-prayags aws-prayags Oct 18, 2024

Choose a reason for hiding this comment

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

other reviewers FYI - I found that each setting has a ConfigurationScope that dictates which settings file(s) it can be defined in

All scopes here - link

Scope for extensions.autoUpdate is set here. So this setting cannot be added to Machine/settings.json

Copy link
Contributor

@aws-prayags aws-prayags left a comment

Choose a reason for hiding this comment

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

This PR should be merged after the sagemaker-code-editor patch ( to notify customer about change in behavior) is released

Copy link
Contributor

@claytonparnell claytonparnell left a comment

Choose a reason for hiding this comment

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

@TRNWWZ TRNWWZ merged commit eb32561 into aws:main Oct 25, 2024
TRNWWZ pushed a commit that referenced this pull request Oct 28, 2024
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.

4 participants