22

I generated the files necessary for creating a color theme in VS Code. I did this with the generator-code node package.

My file structure is as follows

When I run VS Code's debugger, I get this warning that prevents the debugger from running.

Here are the contents of my launch.json file for reference:

{
  "version": "0.2.0",
  "configurations": [
      {
          "name": "Extension",
          "type": "extensionHost",
          "request": "launch",
          "runtimeExecutable": "${execPath}",
          "args": [
              "--extensionDevelopmentPath=${workspaceFolder}"
          ],
          "outFiles": [
              "${workspaceFolder}/out/**/*.js"
          ],
      }
  ]
}

In case you're wondering what I'm expecting to happen when I run the debugger, here's the moment in the tutorial I was following where I ran into this problem.

Edit: Well, I evaded the problem somehow by deleting the files and starting over. I'm not sure what was causing the problem before.

Ksoup
  • 223
  • 1
  • 2
  • 6

3 Answers3

46

This popup only appears for me when trying to launch the debugger while having the launch.json or tasks.json file open. Switching to one of my test files and launching the debugger fixes it

Ethan Fischer
  • 1,229
  • 2
  • 18
  • 30
0

I had this error when my launch.json was not according to the version + configurations scheme, I copy pasted the content of configurations to the file instead of putting it in the array.

{
    "name": "Extension",
    "type": "extensionHost",
    "request": "launch",
    "runtimeExecutable": "${execPath}",
    "args": [
        "--extensionDevelopmentPath=${workspaceFolder}"
    ],
    "outFiles": [
        "${workspaceFolder}/out/**/*.js"
    ],
}
Mugen
  • 8,301
  • 10
  • 62
  • 140
0

Try Adding Configurations (Menu-->Run-->Add Configuration-->your browser)