mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Fix ts server potentially logging unknown error code in some cases
This commit is contained in:
parent
d6dcd7d5fc
commit
38b4b14fb6
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue