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

Adopt #27338

上级 9a556522
......@@ -368,7 +368,10 @@ export class TerminalTaskSystem extends EventEmitter implements ITaskSystem {
let options = this.resolveOptions(task.command.options);
let { command, args } = this.resolveCommandAndArgs(task);
let terminalName = nls.localize('TerminalTaskSystem.terminalName', 'Task - {0}', task.name);
let waitOnExit = task.command.terminal.reveal !== RevealKind.Never || !task.isBackground;
let waitOnExit: boolean | string = false;
if (task.command.terminal.reveal !== RevealKind.Never || !task.isBackground) {
waitOnExit = nls.localize('reuseTerminal', 'Terminal will be reused by tasks, press any key to close it.');
};
let shellLaunchConfig: IShellLaunchConfig = undefined;
let isShellCommand = task.command.type === CommandType.Shell;
if (isShellCommand) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册