vscode: "Cannot edit in read-only editor" when trying to edit .js file after debugging

  • VSCode Version: 1.47.2
  • OS Version: macOs Catalina 10.15.5

Similar to https://github.com/microsoft/vscode/issues/83784

Steps to Reproduce:

  1. Debug a .js file
  2. After debugging is completed try to edit a file

Sample debug config

{
      "type": "node",
      "request": "launch",
      "name": "Launch confluence-team-flags-debug",
      "envFile": "${workspaceFolder}/debug/.env",
      "program": "${workspaceFolder}/debug/confluence-team-flags-debug.js"
},

The project is nodejs12.x + serverless framework, no transpilation

  "dependencies": {
    "aws-sdk": "^2.659.0",
    "axios": "^0.19.0",
    "bottleneck": "^2.19.5",
    "json2csv": "^4.5.4",
    "moment": "^2.24.0"
  }

Does this issue occur when all extensions are disabled?: Yes/No Yes

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

@connor4312 my issue is fixed by adding

"debug.javascript.usePreview": false

To my settings.json

You may be encountering a different issue. Please collect a trace log (instructions above)

Linux solution works