File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 28
28
"endsPattern" : " Finished compilation with"
29
29
}
30
30
}
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
+ },
31
43
},
32
44
{
33
45
"type" : " npm" ,
Original file line number Diff line number Diff line change @@ -1040,6 +1040,9 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
1040
1040
} else if ( task . command . presentation && ( task . command . presentation . focus || task . command . presentation . reveal === RevealKind . Always ) ) {
1041
1041
this . _terminalService . setActiveInstance ( terminal ) ;
1042
1042
await this . _terminalService . revealActiveTerminal ( ) ;
1043
+ if ( task . command . presentation . focus ) {
1044
+ this . _terminalService . focusActiveInstance ( ) ;
1045
+ }
1043
1046
}
1044
1047
this . _activeTasks [ task . getMapKey ( ) ] . terminal = terminal ;
1045
1048
this . _fireTaskEvent ( TaskEvent . changed ( ) ) ;
You can’t perform that action at this time.
0 commit comments