Skip to content

Commit 0f967b6

Browse files
committed
fix #197394
1 parent 881e54d commit 0f967b6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.vscode/tasks.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
"endsPattern": "Finished compilation with"
2929
}
3030
}
31+
},
32+
{
33+
"label": "go mod tidy",
34+
"type": "shell",
35+
"command": "echo hi",
36+
"group": "build",
37+
"presentation": {
38+
"reveal": "always",
39+
"panel": "new",
40+
"focus": true,
41+
"echo": true
42+
},
3143
},
3244
{
3345
"type": "npm",

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)