mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
Merge pull request #19872 from glayzzle/master
fix: dispose the this.documentListener
This commit is contained in:
commit
042662748e
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue