Skip to content

Commit ce5060d

Browse files
committed
remove run button from Python and debugger extensions in Dockerfile
1 parent 8bc6f8f commit ce5060d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-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-
# 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
104104
RUN 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
116127
FROM cs50/cli:${TAG}
117128

0 commit comments

Comments
 (0)