提交 04266274 编写于 作者: R Rob Lourens 提交者: GitHub

Merge pull request #19872 from glayzzle/master

fix: dispose the this.documentListener
......@@ -121,6 +121,10 @@ export default class PHPValidationProvider {
public dispose(): void {
this.diagnosticCollection.clear();
this.diagnosticCollection.dispose();
if (this.documentListener) {
this.documentListener.dispose();
this.documentListener = null;
}
}
private loadConfiguration(): void {
......@@ -293,4 +297,4 @@ export default class PHPValidationProvider {
}
vscode.window.showInformationMessage(message);
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册