@@ -85,7 +85,10 @@ export class PowerShellProcess {
85
85
powerShellExePath = batScriptPath ;
86
86
}
87
87
88
- this . log . write ( "Language server starting..." ) ;
88
+ this . log . write (
89
+ "Language server starting --" ,
90
+ " exe: " + powerShellExePath ,
91
+ " args: " + startScriptPath + ' ' + this . startArgs ) ;
89
92
90
93
// Make sure no old session file exists
91
94
utils . deleteSessionFile ( this . sessionFilePath ) ;
@@ -134,20 +137,13 @@ export class PowerShellProcess {
134
137
vscode . window . onDidCloseTerminal (
135
138
terminal => {
136
139
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" ) ;
138
141
this . onExitedEmitter . fire ( ) ;
139
142
}
140
143
} ) ;
141
144
142
145
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 } ` ) ; } ) ;
151
147
}
152
148
catch ( e )
153
149
{
@@ -173,7 +169,7 @@ export class PowerShellProcess {
173
169
}
174
170
175
171
if ( this . consoleTerminal ) {
176
- this . log . write ( os . EOL + "Terminating PowerShell process..." ) ;
172
+ this . log . write ( "Terminating PowerShell process..." ) ;
177
173
this . consoleTerminal . dispose ( ) ;
178
174
this . consoleTerminal = undefined ;
179
175
}
0 commit comments