File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,9 @@ export class ConsoleFeature implements IFeature {
172
172
this . languageClient . sendRequest ( EvaluateRequest . type , {
173
173
expression : editor . document . getText ( selectionRange )
174
174
} ) ;
175
+
176
+ // Show the output window if it isn't already visible
177
+ this . consoleChannel . show ( vscode . ViewColumn . Three ) ;
175
178
} ) ;
176
179
177
180
this . consoleChannel = vscode . window . createOutputChannel ( "PowerShell Output" ) ;
@@ -189,14 +192,6 @@ export class ConsoleFeature implements IFeature {
189
192
promptDetails => showInputPrompt ( promptDetails , this . languageClient ) ) ;
190
193
191
194
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
-
200
195
this . consoleChannel . append ( output . output ) ;
201
196
} ) ;
202
197
}
You can’t perform that action at this time.
0 commit comments