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() }