如何编写不等待过程完成的VS Code任务?

时间:2019-01-17 15:38:19

标签: visual-studio-code

我想执行一个任务,该任务将构建一个项目并在pdf查看器中打开生成的pdf文件:

"tasks": [
    {
        "label": "Build",
        "type": "shell",
        "command": "make",
    },
    {
        "label": "Build and View",
        "type": "process",
        "command": "evince",
        "args": [
            "_build/document.pdf"
        ],
        "dependsOn": ["Build"],
        "group": {
            "kind": "build",
            "isDefault": true
        }
    }
]

但是,这使VS Code等待pdf查看器进程存在。这不是我想要的。另外,当再次运行任务时,我得到

enter image description here

0 个答案:

没有答案