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

fix: auto patch for WorkspaceTracker_45
This commit is contained in:
kiwina 2025-06-05 04:57:54 +08:00 • committed by GitHub
parent fe26c05dc9
commit f561208146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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