Fix command
being set twice in object
This commit is contained in:
parent
b393709eb2
commit
d4dc9e09a2
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||||
"command" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
"command" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
this.logTelemetry('fatalError', { command, ...(error instanceof TypeScriptServerError ? error.telemetry : {}) });
|
this.logTelemetry('fatalError', { ...(error instanceof TypeScriptServerError ? error.telemetry : { command }) });
|
||||||
console.error(`A non-recoverable error occured while executing tsserver command: ${command}`);
|
console.error(`A non-recoverable error occured while executing tsserver command: ${command}`);
|
||||||
if (error instanceof TypeScriptServerError && error.serverErrorText) {
|
if (error instanceof TypeScriptServerError && error.serverErrorText) {
|
||||||
console.error(error.serverErrorText);
|
console.error(error.serverErrorText);
|
||||||
|
|
Loading…
Reference in a new issue