Repository navigation
Commit 58dd51f
fix(watcher): recursive FSEvents roots on macOS
- one FSEvents stream stops delivering above 4,096 registered paths and notify reports nothing; on macOS handler roots register with `RecursiveMode::Recursive`, once per process, and directories a root covers do not register natively
- every other backend keeps one non-recursive watch per directory, in main's registration order
- admitted set: every directory offered for registration; kept across index reloads, pruned when a directory vanishes
- event gate on the recursive topology: a path is admitted when it is an admitted directory, a direct child of one, or a vanished ancestor of one; ignored-subtree events are dropped before the debouncer and the per-path discovery walk
- a recreated directory is admitted again through discovery, keyed on the admitted set; the nearest surviving ancestor of a pruned directory admits a direct-child directory event only
- `UnifiedWatcher::recursive_roots` selects the topology; tests set it, so both topologies run on every host
Co-authored-by: Mason James <297610+masonjames@users.noreply.github.com>1 parent 77222c6 commit 58dd51f
1 file changed
Lines changed: 389 additions & 15 deletions
0 commit comments