在Visual Studio代码中,我设置了以下构建任务(tasks.json),并且它一直工作到今天。
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-p", "."],
"showOutput": "always",
"problemMatcher": "$tsc"
}
我确实将VSCode升级到了1.12.1,所以我想知道升级是否为什么不再有效。基本上现在当我按下Ctrl Shift B时,没有任何反应。通常在底部显示旋转图标,然后在任务输出中显示错误。现在什么都没发生我仍然可以成功构建命令(tsc -p。)
答案 0 :(得分:1)
这是我配置VS代码的方式:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "python",
"group": {
"kind": "build",
"isDefault": true
},
"args": [
"setup.py",
"install"
],
"presentation": {
"echo": true,
"panel": "shared",
"focus": true
}
}
]
}
答案 1 :(得分:0)
升级Visual Studio Team Services扩展后问题就消失了。