mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 13:50:46 +01:00
Merge pull request #198375 from microsoft/merogge/bug2
focus terminal based on task focus option
This commit is contained in:
@@ -1040,6 +1040,9 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
|
||||
} else if (task.command.presentation && (task.command.presentation.focus || task.command.presentation.reveal === RevealKind.Always)) {
|
||||
this._terminalService.setActiveInstance(terminal);
|
||||
await this._terminalService.revealActiveTerminal();
|
||||
if (task.command.presentation.focus) {
|
||||
this._terminalService.focusActiveInstance();
|
||||
}
|
||||
}
|
||||
this._activeTasks[task.getMapKey()].terminal = terminal;
|
||||
this._fireTaskEvent(TaskEvent.changed());
|
||||
|
||||
Reference in New Issue
Block a user