visual-studio-code - 如何编写不等待进程完成的 VS 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 查看器进程存在。这不是我想要的。此外,当我再次运行任务时,我得到
解决方案
推荐阅读
- java - Java:在多维 Arrylist 中访问对象的元素
- python - 将大的 .json 文件转换为表格
- react-admin - 在 ArrayInput/SimpleFormIterator 内使用 ReferenceField
- typescript - 打字稿条件类型和类 - 奇怪的行为
- html - 标签 display flex 给出了奇怪的输出
- c# - 通过 C# 脚本添加操作组件仅适用于 Unity
- python - 如何按多列分组并通过从Python中的行总数除以每个单元格的百分比?
- php - 如何从mysql从服务器发送数据并设置cookie?
- azure - 为什么 C:\Program Files\dotnet\sdk\3.1.201 中缺少 msbuild.exe?导致 AzureDevOps 构建步骤失败
- python - 如何在 Python 的 input() 函数中更改用户输入的光标位置?