mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Fix command being set twice in object
This commit is contained in:
@@ -735,7 +735,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
"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}`);
|
||||
if (error instanceof TypeScriptServerError && error.serverErrorText) {
|
||||
console.error(error.serverErrorText);
|
||||
|
||||
Reference in New Issue
Block a user