Browse Source

fix(WorkspaceTracker): Dispose FileSystemWatcher and other disposables to prevent resource leaks (#4237)

fix: auto patch for WorkspaceTracker_45
kiwina 9 months ago
parent
commit
f561208146
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/integrations/workspace/WorkspaceTracker.ts

+ 1 - 0
src/integrations/workspace/WorkspaceTracker.ts

@@ -168,6 +168,7 @@ class WorkspaceTracker {
 			this.resetTimer = null
 		}
 		this.disposables.forEach((d) => d.dispose())
+		this.disposables = [] // Clear the array
 	}
 }