我有一个版本为0.1.0的任务,想要将其迁移到2.0.0版本。
这个任务仅是使用Gulp脚本将Typescript转译成Javascript。输出结果会显示在“output”控制台中,没有终端参与,我希望保持这种方式(主要是因为终端中的臭名昭著的消息 “Terminal will be reused by tasks, press any key to close it.
” 会在终端中的任何命令结束时出现!)
我不知道如何将此任务迁移到2.0.0版本以避免使用终端!
以下是版本0.1.0:
{
"version": "0.1.0",
"command": "${workspaceRoot}/node_modules/.bin/gulp",
"isShellCommand": true,
"showOutput": "always",
"suppressTaskName": true,
"tasks": [
{
"taskName": "compile",
"args": [
"compile",
"exit"
],
"isBuildCommand": true,
"problemMatcher": "$tsc"
}
]
}
这是我目前版本2.0.0的尝试:
{
"version": "2.0.0",
"tasks": [
{
"identifier": "compile",
"type": "shell",
"taskName": "compile",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "new"
},
"command": "${workspaceRoot}/node_modules/.bin/gulp compile exit",
"problemMatcher": [
"$tsc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
这将在集成终端中显示输出。
我该如何让它使用输出控制台呢?