From f59689694236b0743ff2ee4321ed0ac02bb3b28d Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 9 Dec 2016 11:07:27 -0800 Subject: [PATCH] Fix #217: Output window should appear when F8 is pressed. --- src/features/Console.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/features/Console.ts b/src/features/Console.ts index 5cf155cb9a..2c6c111846 100644 --- a/src/features/Console.ts +++ b/src/features/Console.ts @@ -172,6 +172,9 @@ export class ConsoleFeature implements IFeature { this.languageClient.sendRequest(EvaluateRequest.type, { expression: editor.document.getText(selectionRange) }); + + // Show the output window if it isn't already visible + this.consoleChannel.show(vscode.ViewColumn.Three); }); this.consoleChannel = vscode.window.createOutputChannel("PowerShell Output"); @@ -189,14 +192,6 @@ export class ConsoleFeature implements IFeature { promptDetails => showInputPrompt(promptDetails, this.languageClient)); this.languageClient.onNotification(OutputNotification.type, (output) => { - var outputEditorExist = vscode.window.visibleTextEditors.some((editor) => { - return editor.document.languageId == 'Log' - }); - - if (!outputEditorExist) { - this.consoleChannel.show(vscode.ViewColumn.Three); - } - this.consoleChannel.append(output.output); }); }