From f5612081463b4d7b956b22c06c737ed789f792c5 Mon Sep 17 00:00:00 2001 From: kiwina Date: Thu, 5 Jun 2025 04:57:54 +0800 Subject: [PATCH] fix(WorkspaceTracker): Dispose FileSystemWatcher and other disposables to prevent resource leaks (#4237) fix: auto patch for WorkspaceTracker_45 --- src/integrations/workspace/WorkspaceTracker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/integrations/workspace/WorkspaceTracker.ts b/src/integrations/workspace/WorkspaceTracker.ts index 9b792fe509..7de8f994c0 100644 --- a/src/integrations/workspace/WorkspaceTracker.ts +++ b/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 } }