调试VS Code主题时出现“You don't have an extension for debugging 'JSON with Comments'”警告

nue99wik  于 2023-04-21  发布在  其他
关注(0)|答案(3)|浏览(2751)

我在VS代码中生成了创建颜色主题所需的文件。
My file structure is as follows
当我运行VS Code的调试器时,我得到了阻止调试器运行的this warning
下面是我的launch.json文件的内容供参考:

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

如果你想知道当我运行调试器时会发生什么,在我遇到这个问题的教程中,我会使用here's the moment

**编辑:**好吧,我通过删除文件并重新开始以某种方式回避了这个问题.我不知道是什么原因导致的问题之前.

vzgqcmou

vzgqcmou1#

只有在打开launch.json或tasks.json文件的情况下尝试启动调试器时,才会出现此弹出窗口。切换到我的一个测试文件并启动调试器可以修复此问题

8oomwypt

8oomwypt2#

当我的launch.json不符合version + configurations方案时,我遇到了这个错误,我将configurations的内容复制粘贴到文件中,而不是将其放入数组中。

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

cqoc49vn3#

尝试添加配置(菜单--〉运行--〉添加配置--〉您的浏览器)

相关问题