File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 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 {
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 }
You can’t perform that action at this time.
0 commit comments