From 7f95deb1329a4ba632fbde12a54f3cc0df359d0d Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Mon, 8 Jul 2019 08:59:09 -0700 Subject: [PATCH] add a comment --- src/client/process.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/process.ts b/src/client/process.ts index 537199c..a43bc53 100644 --- a/src/client/process.ts +++ b/src/client/process.ts @@ -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); }