Skip to content

Commit 36dee1f

Browse files
authored
Merge pull request #198375 from microsoft/merogge/bug2
focus terminal based on task focus option
2 parents f5a048f + 4d30cfe commit 36dee1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,9 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
10401040
} else if (task.command.presentation && (task.command.presentation.focus || task.command.presentation.reveal === RevealKind.Always)) {
10411041
this._terminalService.setActiveInstance(terminal);
10421042
await this._terminalService.revealActiveTerminal();
1043+
if (task.command.presentation.focus) {
1044+
this._terminalService.focusActiveInstance();
1045+
}
10431046
}
10441047
this._activeTasks[task.getMapKey()].terminal = terminal;
10451048
this._fireTaskEvent(TaskEvent.changed());

0 commit comments

Comments
 (0)