Skip to content

Commit f561208

Browse files
authored
fix(WorkspaceTracker): Dispose FileSystemWatcher and other disposables to prevent resource leaks (#4237)
fix: auto patch for WorkspaceTracker_45
1 parent fe26c05 commit f561208

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/integrations/workspace/WorkspaceTracker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class WorkspaceTracker {
168168
this.resetTimer = null
169169
}
170170
this.disposables.forEach((d) => d.dispose())
171+
this.disposables = [] // Clear the array
171172
}
172173
}
173174

0 commit comments

Comments
 (0)