From 4f6d182dde7c973dfac321f7f2b760c85f50bfda Mon Sep 17 00:00:00 2001 From: Dat <38579777+stevedat@users.noreply.github.com> Date: Thu, 12 Nov 2026 04:33:30 +0700 Subject: [PATCH] feat(watcher): ignore mobile/monorepo build folders while keeping Pods live-watched (#28494) --- src/main/git/huge-folder-ignore.ts | 13 ++++++++++++- .../watchers/filesystem-watcher-ignore.ts | 5 ++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/git/huge-folder-ignore.ts b/src/main/git/huge-folder-ignore.ts index 15cdb5f03f0..bf003e3d1a7 100644 --- a/src/main/git/huge-folder-ignore.ts +++ b/src/main/git/huge-folder-ignore.ts @@ -5,7 +5,18 @@ import { checkIgnoredPaths } from './source-control/check-ignored-paths' import type { GitRuntimeOptions } from './git-runtime-options' // Offer common dependency/build folders when unignored content saturates status. -const KNOWN_HUGE_FOLDER_NAMES = ['node_modules', '.next', 'dist', 'build', 'target', 'vendor'] +const KNOWN_HUGE_FOLDER_NAMES = [ + 'node_modules', + '.next', + 'dist', + 'build', + 'target', + 'vendor', + '.dart_tool', + '.gradle', + '.turbo', + 'Pods' +] export async function findKnownHugeFolderPathsToIgnore( worktreePath: string, diff --git a/src/main/ipc/filesystem/watchers/filesystem-watcher-ignore.ts b/src/main/ipc/filesystem/watchers/filesystem-watcher-ignore.ts index 1ea8daa7fad..3f125f71142 100644 --- a/src/main/ipc/filesystem/watchers/filesystem-watcher-ignore.ts +++ b/src/main/ipc/filesystem/watchers/filesystem-watcher-ignore.ts @@ -8,7 +8,10 @@ export const WATCHER_IGNORE_DIRS: string[] = [ '.cache', 'target', '.venv', - '__pycache__' + '__pycache__', + '.dart_tool', + '.gradle', + '.turbo' ] // FSEvents rejects all exclusions above eight paths; regex filtering covers the remaining names at every depth.