fix error on dispose

This commit is contained in:
Qiming Zhao 2020-12-17 15:41:00 +08:00
parent bac3ec6149
commit 7f0b662778
2 changed files with 2 additions and 3 deletions

View file

@ -53,7 +53,7 @@ export default class LanguageProvider {
initialized = true
this.registerProviders(client, typingsStatus)
}
}, null, this.disposables)
})
}
private configurationChanged(): void {

View file

@ -33,7 +33,7 @@ interface ToCancelOnResourceChanged {
}
class ForkedTsServerProcess {
constructor(private childProcess: cp.ChildProcess) { }
constructor(private childProcess: cp.ChildProcess) {}
public readonly toCancelOnResourceChange = new Set<ToCancelOnResourceChanged>()
@ -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()