mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Fix ts server potentially logging unknown error code in some cases
This commit is contained in:
@@ -610,7 +610,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||
this.serviceExited(false);
|
||||
});
|
||||
childProcess.on('exit', (code: any) => {
|
||||
this.error(`TSServer exited with code: ${code ? code : 'unknown'}`);
|
||||
this.error(`TSServer exited with code: ${code === null || typeof code === 'undefined' ? 'unknown' : code}`);
|
||||
if (this.tsServerLogFile) {
|
||||
this.error(`TSServer log file: ${this.tsServerLogFile}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user