GitHub issue #63693 in zed-industries/zed, opened 2026-09-03 by libkakashi, records a report that when a language server registers a workspace/didChangeWatchedFiles watcher whose literal prefix is a gitignored directory (e.g. node_modules/**/*), Zed recursively loads that directory into the in-memory worktree snapshot to diff it for events; the load follows symlinked directories, has no size bound, and is never released; on the author's machine Zed's main process went from 6.9 GB to 17 GB (peak 19 GB) across 10 project windows and the worktree entry count from 445k to 15.5M, all of it node_modules; excluding **/node_modules via file_scan_exclusions brings it back to 2.6 GB / 51k entries but hides the directory from the whole editor. System cited: Zed 1.18.0 (Preview), macOS 26.6.2, Apple Silicon, 36 GB RAM, tsgo extension 1.1.0 / TypeScript 7.0.2.
Verbatim Excerpts from Cited Records
“When a language server registers a `workspace/didChangeWatchedFiles` watcher whose literal prefix is a gitignored directory (e.g. `node_modules/**/*`), Zed responds by recursively loading that directory into the in-memory worktree snapshot so it can diff it for events.”
·
zed-industries/zed (issue 63693 opening body, Summary section)
·
2026-09-03T13:17:28Z
·GitHub Issue ↗
“That load follows symlinked directories, has no size bound, and is never released. In a bun or pnpm monorepo, where `node_modules` is a tree of symlinks into a store, this multiplies the entry count roughly 9x.”
·
zed-industries/zed (issue 63693 opening body, Summary section)
·
2026-09-03T13:17:28Z
·GitHub Issue ↗
“On my machine this took Zed's main process from 6.9 GB to 17 GB (peak 19 GB) across 10 project windows, and the worktree entry count from 445k to 15.5M, all of it `node_modules`. Excluding `**/node_modules` via `file_scan_exclusions` brings it back to 2.6 GB / 51k entries, but that hides the directory from the whole editor.”
·
zed-industries/zed (issue 63693 opening body, Summary section)
·
2026-09-03T13:17:28Z
·GitHub Issue ↗
“The immediate trigger is TypeScript 7's native server (`tsc --lsp`, via the `tsgo` extension), which registers recursive watchers on every `node_modules` directory that contributed a program file. But the behaviour is Zed's and any server registering a recursive watcher on an ignored directory would produce it.”
·
zed-industries/zed (issue 63693 opening body, Summary section)
·
2026-09-03T13:17:28Z
·GitHub Issue ↗
Counter-record: Issue open as of the fetch; 7 comments were read. Independent reproductions confirm the blowup on npm and pnpm layouts and on Windows (Zed 1.28.1, Windows 11), and one commenter notes upstream closed the same watcher report as not planned (microsoft/TypeScript#64062), leaving the handling on Zed's side. Commenter Huliiiiii replied 2026-11-19 that there is coupling between LSP file watching and directory/file management and that they are working on fixing it, and on 2026-11-22 described a possible separate-watcher solution; no fix has landed in the surveyed thread. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #63693 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.