From 7f0b66277805eecc69012e18fe0637119909c01d Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Thu, 17 Dec 2020 15:41:00 +0800 Subject: [PATCH] fix error on dispose --- src/server/languageProvider.ts | 2 +- src/server/typescriptServiceClient.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/server/languageProvider.ts b/src/server/languageProvider.ts index 39b8780..37fe1a9 100644 --- a/src/server/languageProvider.ts +++ b/src/server/languageProvider.ts @@ -53,7 +53,7 @@ export default class LanguageProvider { initialized = true this.registerProviders(client, typingsStatus) } - }, null, this.disposables) + }) } private configurationChanged(): void { diff --git a/src/server/typescriptServiceClient.ts b/src/server/typescriptServiceClient.ts index 0b901bc..13c3714 100644 --- a/src/server/typescriptServiceClient.ts +++ b/src/server/typescriptServiceClient.ts @@ -33,7 +33,7 @@ interface ToCancelOnResourceChanged { } class ForkedTsServerProcess { - constructor(private childProcess: cp.ChildProcess) { } + constructor(private childProcess: cp.ChildProcess) {} public readonly toCancelOnResourceChange = new Set() @@ -172,7 +172,6 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient .then(undefined, () => void 0) } this.bufferSyncSupport.dispose() - disposeAll(this.disposables) this.logger.dispose() this._onTsServerStarted.dispose() this._onResendModelsRequested.dispose()