File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,9 @@ export class ConsoleFeature implements IFeature {
215
215
this . log . write ( "PSIC is not active terminal. Running in active terminal using 'runSelectedText'" ) ;
216
216
await vscode . commands . executeCommand ( "workbench.action.terminal.runSelectedText" ) ;
217
217
218
- // we need to honor the focusConsoleOnExecute setting here too.
218
+ // We need to honor the focusConsoleOnExecute setting here too. However, the boolean that `show`
219
+ // takes is called `preserveFocus` which when `true` the terminal will not take focus.
220
+ // This is the inverse of focusConsoleOnExecute so we have to inverse the boolean.
219
221
vscode . window . activeTerminal . show ( ! Settings . load ( ) . integratedConsole . focusConsoleOnExecute ) ;
220
222
await vscode . commands . executeCommand ( "workbench.action.terminal.scrollToBottom" ) ;
221
223
You can’t perform that action at this time.
0 commit comments