如何启动vscode live服务器作为launch.json中的任务

时间:2020-09-15 09:58:40

标签: visual-studio-code vscode-tasks

我需要拥有vscode才能将vscode实时服务器作为启动配置在launch.json中启动,以便能够将其启动与其他启动配置一起包含在复合启动中。

例如,我尝试了"Launch Extension"类型的"pwa-extensionHost",它具有几个不同的参数和运行时可执行文件

    {
      "name": "Launch Extension",
      "request": "launch",
      "type": "pwa-extensionHost",
      "runtimeExecutable": "liveserver"
    }

    {
      "name": "Launch Extension",
      "request": "launch",
      "type": "pwa-extensionHost",
      "args": [
        "--extensionDevelopmentPath=${workspaceFolder}",
        "liveserver"
      ]
    }

但无法运行。

0 个答案:

没有答案