mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Add some extra logging for TSServer start
This commit is contained in:
parent
09e212f933
commit
83db0069f1
|
@ -231,6 +231,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||||
if (this.servicePromise) {
|
if (this.servicePromise) {
|
||||||
this.servicePromise = this.servicePromise.then(cp => {
|
this.servicePromise = this.servicePromise.then(cp => {
|
||||||
if (cp) {
|
if (cp) {
|
||||||
|
this.info('Killing TS Server');
|
||||||
this.isRestarting = true;
|
this.isRestarting = true;
|
||||||
cp.kill();
|
cp.kill();
|
||||||
}
|
}
|
||||||
|
@ -401,7 +402,10 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||||
this.logTelemetry('error', { message: err.message });
|
this.logTelemetry('error', { message: err.message });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.info('Started TSServer');
|
||||||
this.lastStart = Date.now();
|
this.lastStart = Date.now();
|
||||||
|
|
||||||
childProcess.on('error', (err: Error) => {
|
childProcess.on('error', (err: Error) => {
|
||||||
this.lastError = err;
|
this.lastError = err;
|
||||||
this.error('TSServer errored with error.', err);
|
this.error('TSServer errored with error.', err);
|
||||||
|
@ -416,7 +420,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||||
});
|
});
|
||||||
childProcess.on('exit', (code: any) => {
|
childProcess.on('exit', (code: any) => {
|
||||||
if (code === null || typeof code === 'undefined') {
|
if (code === null || typeof code === 'undefined') {
|
||||||
this.info(`TSServer exited`);
|
this.info('TSServer exited');
|
||||||
} else {
|
} else {
|
||||||
this.error(`TSServer exited with code: ${code}`);
|
this.error(`TSServer exited with code: ${code}`);
|
||||||
/* __GDPR__
|
/* __GDPR__
|
||||||
|
|
Loading…
Reference in a new issue