无法为TypeScript项目打开扩展开发主机

时间:2018-06-01 08:12:12

标签: typescript visual-studio-code vscode-extensions

我正在尝试通过第一个vs代码扩展教程,但我无法打开扩展开发主机。点击F5什么都不做,点击调试侧边栏中的开始按钮似乎也没有做任何事情。

我使用yo code生成了我的项目并选择了TypeScript选项。

我已经尝试过选择JavaScript选项,但似乎工作正常。

launch.json看起来像:

// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceFolder}"
            ],
            "outFiles": [
                "${workspaceFolder}/out/**/*.js"
            ],
            "preLaunchTask": "npm: watch"
        },
        {
            "name": "Extension Tests",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceFolder}",
                "--extensionTestsPath=${workspaceFolder}/out/test"
            ],
            "outFiles": [
                "${workspaceFolder}/out/test/**/*.js"
            ],
            "preLaunchTask": "npm: watch"
        }
    ]
}

0 个答案:

没有答案