Closed
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.99.0 (Universal)
- OS Version: macOS 14.6.1
Steps to Reproduce:
- Start VS Code with
--disable-extensions --user-data-dir $PWD/tmp-user-data-dir ws/
wheretmp-user-data-dir
andws
are initially empty - Trigger the command
Debug: Select and Start Debugging
- Select
Node.js ...
- Click the gear icon on the right-side of the first listed item
- A
.vscode/launch.json
is created and opened in the editor, but the launch configuration is not added - The
Window
output channel shows these errors (I repeated the action 3 times)
2025-04-08 15:31:35.844 [error] [Window] Cannot add property configurations, object is not extensible: TypeError: Cannot add property configurations, object is not extensible
at frt.writeConfiguration (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2241:264)
at Wse.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2240:15396)
2025-04-08 15:33:09.659 [error] [Window] Cannot assign to read only property 'configurations' of object '#<Object>': TypeError: Cannot assign to read only property 'configurations' of object '#<Object>'
at frt.writeConfiguration (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2241:264)
at Wse.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2240:15396)
2025-04-08 15:37:27.480 [error] [Window] Cannot assign to read only property 'configurations' of object '#<Object>': TypeError: Cannot assign to read only property 'configurations' of object '#<Object>'
at frt.writeConfiguration (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2241:264)
at Wse.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2240:15396)
- Using the same gear button on the second item of the list opens the User settings.json but the launch configuration is not added. The following error appears in the
Window
output channel:
025-04-08 15:50:39.674 [error] [Window] d.writeConfiguration is not a function: TypeError: d.writeConfiguration is not a function
at Wse.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2240:15396)
I hope this helps. Thanks!