Skip to content

Commit e79cf8a

Browse files
add descriptive comment
1 parent f08bc1e commit e79cf8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/Console.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ export class ConsoleFeature implements IFeature {
215215
this.log.write("PSIC is not active terminal. Running in active terminal using 'runSelectedText'");
216216
await vscode.commands.executeCommand("workbench.action.terminal.runSelectedText");
217217

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.
219221
vscode.window.activeTerminal.show(!Settings.load().integratedConsole.focusConsoleOnExecute);
220222
await vscode.commands.executeCommand("workbench.action.terminal.scrollToBottom");
221223

0 commit comments

Comments
 (0)