mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Also log error when a fatal error happens
This commit is contained in:
parent
cabcace4b5
commit
35587bec93
|
@ -716,6 +716,9 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
|||
*/
|
||||
this.logTelemetry('fatalError', { command, ...(error instanceof TypeScriptServerError ? error.telemetry : {}) });
|
||||
console.error(`A non-recoverable error occured while executing tsserver command: ${command}`);
|
||||
if (error instanceof TypeScriptServerError && error.serverErrorText) {
|
||||
console.error(error.serverErrorText);
|
||||
}
|
||||
|
||||
if (this.serverState.type === ServerState.Type.Running) {
|
||||
this.info('Killing TS Server');
|
||||
|
|
Loading…
Reference in a new issue