@@ -85,7 +85,10 @@ export class PowerShellProcess {
8585 powerShellExePath = batScriptPath ;
8686 }
8787
88- this . log . write ( "Language server starting..." ) ;
88+ this . log . write (
89+ "Language server starting --" ,
90+ " exe: " + powerShellExePath ,
91+ " args: " + startScriptPath + ' ' + this . startArgs ) ;
8992
9093 // Make sure no old session file exists
9194 utils . deleteSessionFile ( this . sessionFilePath ) ;
@@ -134,20 +137,13 @@ export class PowerShellProcess {
134137 vscode . window . onDidCloseTerminal (
135138 terminal => {
136139 if ( terminal === this . consoleTerminal ) {
137- this . log . write ( os . EOL + "powershell.exe terminated or terminal UI was closed" + os . EOL ) ;
140+ this . log . write ( "powershell.exe terminated or terminal UI was closed" ) ;
138141 this . onExitedEmitter . fire ( ) ;
139142 }
140143 } ) ;
141144
142145 this . consoleTerminal . processId . then (
143- pid => {
144- console . log ( "powershell.exe started, pid: " + pid + ", exe: " + powerShellExePath ) ;
145- this . log . write (
146- "powershell.exe started --" ,
147- " pid: " + pid ,
148- " exe: " + powerShellExePath ,
149- " args: " + startScriptPath + ' ' + this . startArgs + os . EOL + os . EOL ) ;
150- } ) ;
146+ pid => { this . log . write ( `powershell.exe started, pid: ${ pid } ` ) ; } ) ;
151147 }
152148 catch ( e )
153149 {
@@ -173,7 +169,7 @@ export class PowerShellProcess {
173169 }
174170
175171 if ( this . consoleTerminal ) {
176- this . log . write ( os . EOL + "Terminating PowerShell process..." ) ;
172+ this . log . write ( "Terminating PowerShell process..." ) ;
177173 this . consoleTerminal . dispose ( ) ;
178174 this . consoleTerminal = undefined ;
179175 }
0 commit comments