From 7633da18eb9840d9ac7cfb7d43e8047b8cecb37f Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Fri, 18 Feb 2022 21:37:00 +0800 Subject: [PATCH] clear highlight on client dispose --- src/server/typescriptServiceClient.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/typescriptServiceClient.ts b/src/server/typescriptServiceClient.ts index cd29468..e2bb565 100644 --- a/src/server/typescriptServiceClient.ts +++ b/src/server/typescriptServiceClient.ts @@ -138,9 +138,14 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient public dispose(): void { this.tsServerProcess.kill() + this.diagnosticsManager.dispose() this.bufferSyncSupport.dispose() this.logger.dispose() this._onTsServerStarted.dispose() + this._onProjectLanguageServiceStateChanged.dispose() + this._onDidBeginInstallTypings.dispose() + this._onDidEndInstallTypings.dispose() + this._onTypesInstallerInitializationFailed.dispose() this._onResendModelsRequested.dispose() this.versionStatus.dispose() }