提交 1a45836c 编写于 作者: M Matt Bierner

Dispose of ataProgressReporter

上级 bcea48c5
......@@ -174,7 +174,8 @@ class LanguageProvider {
private readonly currentDiagnostics: DiagnosticCollection;
private readonly bufferSyncSupport: BufferSyncSupport;
private typingsStatus: TypingsStatus;
private readonly typingsStatus: TypingsStatus;
private readonly ataProgressReporter: AtaProgressReporter;
private toUpdateOnConfigurationChanged: ({ updateConfiguration: () => void })[] = [];
private _validate: boolean = true;
......@@ -196,7 +197,7 @@ class LanguageProvider {
this.currentDiagnostics = languages.createDiagnosticCollection(description.id);
this.typingsStatus = new TypingsStatus(client);
new AtaProgressReporter(client);
this.ataProgressReporter = new AtaProgressReporter(client);
workspace.onDidChangeConfiguration(this.configurationChanged, this, this.disposables);
this.configurationChanged();
......@@ -225,6 +226,7 @@ class LanguageProvider {
}
this.typingsStatus.dispose();
this.ataProgressReporter.dispose();
this.currentDiagnostics.dispose();
this.bufferSyncSupport.dispose();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册