Skip to content

Commit

Permalink
console related updates by mikeTWC1984
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 authored and TylerLeonhardt committed Apr 16, 2020
1 parent dc09f49 commit a0f2636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function startREPLProc(context: ExtensionContext, config: settings.ISettings, pw
}
client.sendRequest(EvaluateRequestMessage, evaluateArgs)

await proc.showTerminalIfVisible();
await proc.showTerminalIfNotVisible();
}


Expand Down Expand Up @@ -125,7 +125,7 @@ function startREPLProc(context: ExtensionContext, config: settings.ISettings, pw
expression: `. '${filePath}'`,
};
await client.sendRequest(EvaluateRequestMessage, evaluateArgs);
await proc.showTerminalIfVisible();
await proc.showTerminalIfNotVisible();
})

// Push the disposable to the context's subscriptions so that the
Expand Down
4 changes: 2 additions & 2 deletions src/client/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class PowerShellProcess {
return this.sessionDetails
}

public async showTerminalIfVisible() {
public async showTerminalIfNotVisible() {
if (this.consoleTerminal) {
const winid: number = await vscode.workspace.nvim.eval(`bufwinid(${this.consoleTerminal.bufnr})`) as number;

Expand All @@ -131,7 +131,7 @@ export class PowerShellProcess {
this.consoleTerminal.show();
}

// this fill move cursor to consol after F5/F8
// this will move cursor to consol after F5/F8 if focusConsoleOnExecute is true
if (this.config.integratedConsole.focusConsoleOnExecute) {
this.consoleTerminal.show();
}
Expand Down

0 comments on commit a0f2636

Please sign in to comment.