提交 c00f5277 编写于 作者: D Dirk Baeumer

Fixes #35642: Tasks print "Terminal will be reused" even when presentation.panel set to "new"

上级 c881398b
......@@ -389,7 +389,11 @@ export class TerminalTaskSystem extends EventEmitter implements ITaskSystem {
let terminalName = nls.localize('TerminalTaskSystem.terminalName', 'Task - {0}', needsFolderQualification ? Task.getQualifiedLabel(task) : task.name);
let waitOnExit: boolean | string = false;
if (task.command.presentation.reveal !== RevealKind.Never || !task.isBackground) {
waitOnExit = nls.localize('reuseTerminal', 'Terminal will be reused by tasks, press any key to close it.');
if (task.command.presentation.panel === PanelKind.New) {
waitOnExit = nls.localize('closeTerminal', 'Press any key to close the terminal.');
} else {
waitOnExit = nls.localize('reuseTerminal', 'Terminal will be reused by tasks, press any key to close it.');
}
}
let shellLaunchConfig: IShellLaunchConfig = undefined;
let isShellCommand = task.command.runtime === RuntimeType.Shell;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册