Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt committed Jul 8, 2019
1 parent 6b313be commit 7f95deb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export class PowerShellProcess {
public async showTerminalIfVisible() {
if (this.consoleTerminal) {
const winid: number = await vscode.workspace.nvim.eval(`bufwinid(${this.consoleTerminal.bufnr})`) as number;

// If winid is -1, it means the window is not visible/is hidden.
if (winid > -1) {
this.consoleTerminal.show(!this.config.integratedConsole.focusConsoleOnExecute);
}
Expand Down

0 comments on commit 7f95deb

Please sign in to comment.