In FileWatcher logs, vscode.git extension mapping showed the files.watcherExclude files in include category instead of exclude and its inconsistent at some places as shown in log.
at one place, logs says
log.ts:420 TRACE MainThreadFileSystemEventService#$watch(): request to start watching uncorrelated (extension: vscode.git, path: vscode-remote://ssh-remote+test.com/x/repo, recursive: true, session: 0.6106368273308302, excludes: [".git/objects/**",".git/subtree-cache/**",".hg/store/**","*/.git/objects/**","*/.git/subtree-cache/**","*/.hg/store/**","**/.git","**/__pycache__/**","**/rd/**","**/.vscode/**","br/**","test/**/*.plog*","**/.ruff_cache/**","mrd/node_modules_2025_05_28/**","go_pkg/**","parent/.pytest_cache/**","**/.pytest_cache/**","pkg/mod/cache/**"], includes: undefined)
and in another place log, it says
log.ts:420 TRACE MainThreadFileSystemEventService#$watch(): request to start watching uncorrelated (extension: vscode.git, path: vscode-remote://ssh-remote+test.com/x/repo/.git/refs/remotes/origin/users/user/fix, recursive: false, session: 0.8468755841979798, excludes: [], includes: [{"base":"/x/repo","pattern":".git/objects/**/**"},{"base":"/x/repo","pattern":".git/subtree-cache/**/**"},{"base":"/x/repo","pattern":".hg/store/**/**"},{"base":"/x/repo","pattern":"*/.git/objects/**/**"},{"base":"/x/repo","pattern":"*/.git/subtree-cache/**/**"},{"base":"/x/repo","pattern":"*/.hg/store/**/**"},"**/.git/**","**/__pycache__/**/**","**/rd/**/**","**/.vscode/**/**",{"base":"/x/repo","pattern":"br/**/**"},{"base":"/x/repo","pattern":"test/**/*.plog*/**"},"**/.ruff_cache/**/**",{"base":"/x/repo","pattern":"mrd/node_modules_2025_05_28/**/**"},{"base":"/x/repo","pattern":"go_pkg/**/**"},{"base":"/x/repo","pattern":"parent/.pytest_cache/**/**"},"**/.pytest_cache/**/**",{"base":"/x/repo","pattern":"pkg/mod/cache/**/**"}])
We use symlinked git client, as ours is a large workspace and lots of folder patterns were added to .gitignore and the same were applied to files.exclude, files.watcherExclude, search.exclude in VS Code.
Sometimes, I see a core file getting created in my home directory at the remote-server and it points to file watcher process '/u/user/.vscode-server/bin/41dd792b5e652393e7787322889ed5fdc58bd75b/out/bootstrap-fork --type=fileWatcher'
Is there anything has to be set at git extension settings level? I'm not sure whether git causing the file watcher to overwhelm and causing the core file.
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.115
- OS Version: macOS Tahoe (26.4) but I see this issue on remote connected server (RedHat 9.7)
Steps to Reproduce:
- Connect to Remote-Server using remote-ssh extension from VS Code
- open the root folder of the git client
- Set Log Level to Trace
- Open Help->Toggle Developer Tools and search for the keyword 'watch' in the console
vscode-app-1775729310203 copy.log
In FileWatcher logs, vscode.git extension mapping showed the files.watcherExclude files in include category instead of exclude and its inconsistent at some places as shown in log.
at one place, logs says
log.ts:420 TRACE MainThreadFileSystemEventService#$watch(): request to start watching uncorrelated (extension: vscode.git, path: vscode-remote://ssh-remote+test.com/x/repo, recursive: true, session: 0.6106368273308302, excludes: [".git/objects/**",".git/subtree-cache/**",".hg/store/**","*/.git/objects/**","*/.git/subtree-cache/**","*/.hg/store/**","**/.git","**/__pycache__/**","**/rd/**","**/.vscode/**","br/**","test/**/*.plog*","**/.ruff_cache/**","mrd/node_modules_2025_05_28/**","go_pkg/**","parent/.pytest_cache/**","**/.pytest_cache/**","pkg/mod/cache/**"], includes: undefined)and in another place log, it says
log.ts:420 TRACE MainThreadFileSystemEventService#$watch(): request to start watching uncorrelated (extension: vscode.git, path: vscode-remote://ssh-remote+test.com/x/repo/.git/refs/remotes/origin/users/user/fix, recursive: false, session: 0.8468755841979798, excludes: [], includes: [{"base":"/x/repo","pattern":".git/objects/**/**"},{"base":"/x/repo","pattern":".git/subtree-cache/**/**"},{"base":"/x/repo","pattern":".hg/store/**/**"},{"base":"/x/repo","pattern":"*/.git/objects/**/**"},{"base":"/x/repo","pattern":"*/.git/subtree-cache/**/**"},{"base":"/x/repo","pattern":"*/.hg/store/**/**"},"**/.git/**","**/__pycache__/**/**","**/rd/**/**","**/.vscode/**/**",{"base":"/x/repo","pattern":"br/**/**"},{"base":"/x/repo","pattern":"test/**/*.plog*/**"},"**/.ruff_cache/**/**",{"base":"/x/repo","pattern":"mrd/node_modules_2025_05_28/**/**"},{"base":"/x/repo","pattern":"go_pkg/**/**"},{"base":"/x/repo","pattern":"parent/.pytest_cache/**/**"},"**/.pytest_cache/**/**",{"base":"/x/repo","pattern":"pkg/mod/cache/**/**"}])We use symlinked git client, as ours is a large workspace and lots of folder patterns were added to .gitignore and the same were applied to files.exclude, files.watcherExclude, search.exclude in VS Code.
Sometimes, I see a core file getting created in my home directory at the remote-server and it points to file watcher process '/u/user/.vscode-server/bin/41dd792b5e652393e7787322889ed5fdc58bd75b/out/bootstrap-fork --type=fileWatcher'
Is there anything has to be set at git extension settings level? I'm not sure whether git causing the file watcher to overwhelm and causing the core file.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
vscode-app-1775729310203 copy.log