VSCode - 任务版本2.0.0:如何使用"输出"控制台,而不是终端

ele*_*ype 6 visual-studio-code

我有一个版本0.1.0的任务,我尝试迁移到2.0.0.

此任务只是使用Gulp脚本将Typescript转换为Javascript.输出显示在"输出"控制台中,没有涉及终端,我希望它保持这种方式(主要是因为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"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

这是我目前对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
            }
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

确实显示了集成终端中的输出.

如何让它使用输出控制台呢?

Doc*_*der 1

尝试更改"reveal": "always","reveal": "never",