File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-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- # Pull Python VS Code extension and remove run button from editor title menu
103+ # Remove the run button from both the main Python extension and the debugger extension
104104RUN cd /tmp && \
105105 git clone --branch v2025.14.0 --depth 1 https://github.com/microsoft/vscode-python.git && \
106106 cd vscode-python && \
@@ -112,6 +112,17 @@ RUN cd /tmp && \
112112 cd /tmp && \
113113 rm --force --recursive vscode-python
114114
115+ RUN cd /tmp && \
116+ git clone --branch v2025.10.0 --depth 1 https://github.com/microsoft/vscode-python-debugger.git && \
117+ cd vscode-python-debugger && \
118+ # Remove the editor/title/run entry and save back to package.json
119+ jq 'del(.contributes.menus."editor/title/run")' package.json > package.tmp.json && mv package.tmp.json package.json && \
120+ npm install && \
121+ npm run vsce-package && \
122+ mv python-debugger.vsix /opt/cs50/extensions && \
123+ cd /tmp && \
124+ rm --force --recursive vscode-python-debugger
125+
115126# Final stage
116127FROM cs50/cli:${TAG}
117128
You can’t perform that action at this time.
0 commit comments