mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #19872 from glayzzle/master
fix: dispose the this.documentListener
This commit is contained in:
commit
042662748e
|
@ -121,6 +121,10 @@ export default class PHPValidationProvider {
|
||||||
public dispose(): void {
|
public dispose(): void {
|
||||||
this.diagnosticCollection.clear();
|
this.diagnosticCollection.clear();
|
||||||
this.diagnosticCollection.dispose();
|
this.diagnosticCollection.dispose();
|
||||||
|
if (this.documentListener) {
|
||||||
|
this.documentListener.dispose();
|
||||||
|
this.documentListener = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private loadConfiguration(): void {
|
private loadConfiguration(): void {
|
||||||
|
@ -293,4 +297,4 @@ export default class PHPValidationProvider {
|
||||||
}
|
}
|
||||||
vscode.window.showInformationMessage(message);
|
vscode.window.showInformationMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue