File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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
104104RUN 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
127138FROM cs50/cli:${TAG}
128139
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments