Skip to content

Commit 2026090

Browse files
committed
refactor(linter): rewrite dispose routine
Do not release the resources for the diagnostics and reset subscriptions to an empty array after the subs have been disposed
1 parent 15db3e9 commit 2026090

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/linter-provider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ export class FortranLintingProvider {
241241

242242
public dispose(): void {
243243
this.fortranDiagnostics.clear();
244-
this.fortranDiagnostics.dispose();
244+
// this.fortranDiagnostics.dispose();
245245
this.subscriptions.forEach(d => d.dispose());
246+
// Empty the array after each subscription has been disposed
247+
this.subscriptions = [];
246248
}
247249

248250
/**

0 commit comments

Comments
 (0)