vsc 任务完成后不终止终端

时间:2021-06-08 13:10:14

标签: visual-studio-code vscode-settings vscode-tasks

我在 VSC 中设置了一些任务来运行我的客户端和 API。它们工作得很好,但是当我停止 API 时,终端无法手动重用。

说我运行任务,服务器启动正常。接下来我停止服务器,因为我想运行 npm install。是否有可能获得这种行为?

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "npm",
            "script": "start",
            "path": "client-ui/",
            "group": "test",
            "problemMatcher": [],
            "label": "start client",
            "detail": "start client",
            "presentation": {
                "group": "groupA"
            }
        },
        {
            "type": "npm",
            "script": "start",
            "path": "api/",
            "group": "test",
            "problemMatcher": [],
            "label": "start api",
            "detail": "start client",
            "presentation": {
                "group": "groupA"
            }
        },
        {
            "label": "Run Client and Api",
            "dependsOn": [
                "start api",
                "start client"
            ],
            "problemMatcher": [],
        }
    ]
}

0 个答案:

没有答案