Skip to content

Commit 3c59de8

Browse files
committed
remove run button from python environments extensions
1 parent 1a1949d commit 3c59de8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ RUN npm install --global @vscode/vsce yarn && \
100100
rm --force --recursive design50.vsix && \
101101
npm uninstall --global vsce yarn
102102

103-
# Remove the run button from both the main Python extension and the debugger extension
103+
# Remove the run button from both the main Python extension, debugger, and environments extensions
104104
RUN cd /tmp && \
105105
git clone --branch v2025.14.0 --depth 1 https://github.com/microsoft/vscode-python.git && \
106106
cd vscode-python && \
@@ -123,6 +123,17 @@ RUN cd /tmp && \
123123
cd /tmp && \
124124
rm --force --recursive vscode-python-debugger
125125

126+
RUN cd /tmp && \
127+
git clone --branch v1.8.0 --depth 1 https://github.com/microsoft/vscode-python-environments.git && \
128+
cd vscode-python-environments && \
129+
# Remove the editor/title/run entry and save back to package.json
130+
jq 'del(.contributes.menus."editor/title/run")' package.json > package.tmp.json && mv package.tmp.json package.json && \
131+
npm install && \
132+
npm run vsce-package && \
133+
mv ms-python-envs-insiders.vsix /opt/cs50/extensions && \
134+
cd /tmp && \
135+
rm --force --recursive vscode-python-environments
136+
126137
# Final stage
127138
FROM cs50/cli:${TAG}
128139

devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"/opt/cs50/extensions/phpliteadmin-0.0.1.vsix",
1818
"/opt/cs50/extensions/style50-0.0.1.vsix",
1919
"/opt/cs50/extensions/python-debugger.vsix",
20+
"/opt/cs50/extensions/ms-python-envs-insiders.vsix",
2021
"/opt/cs50/extensions/ms-python-insiders.vsix",
2122
"cs50.extension-uninstaller",
2223
"inferrinizzard.prettier-sql-vscode",

0 commit comments

Comments
 (0)