mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 21:39:43 +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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue