mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +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);
|
this.serviceExited(false);
|
||||||
});
|
});
|
||||||
childProcess.on('exit', (code: any) => {
|
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) {
|
if (this.tsServerLogFile) {
|
||||||
this.error(`TSServer log file: ${this.tsServerLogFile}`);
|
this.error(`TSServer log file: ${this.tsServerLogFile}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue