Skip to content

Commit f596896

Browse files
committed
Fix #217: Output window should appear when F8 is pressed.
1 parent 657446d commit f596896

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/features/Console.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ export class ConsoleFeature implements IFeature {
172172
this.languageClient.sendRequest(EvaluateRequest.type, {
173173
expression: editor.document.getText(selectionRange)
174174
});
175+
176+
// Show the output window if it isn't already visible
177+
this.consoleChannel.show(vscode.ViewColumn.Three);
175178
});
176179

177180
this.consoleChannel = vscode.window.createOutputChannel("PowerShell Output");
@@ -189,14 +192,6 @@ export class ConsoleFeature implements IFeature {
189192
promptDetails => showInputPrompt(promptDetails, this.languageClient));
190193

191194
this.languageClient.onNotification(OutputNotification.type, (output) => {
192-
var outputEditorExist = vscode.window.visibleTextEditors.some((editor) => {
193-
return editor.document.languageId == 'Log'
194-
});
195-
196-
if (!outputEditorExist) {
197-
this.consoleChannel.show(vscode.ViewColumn.Three);
198-
}
199-
200195
this.consoleChannel.append(output.output);
201196
});
202197
}

0 commit comments

Comments
 (0)