Skip to content

fix(debouncer-full): upgrade a root's watch mode when it is watched again - #169

Open
tlq5l wants to merge 1 commit into
rolldown:mainfrom
tlq5l:fix/debouncer-upgrade-root-mode-124
Open

tlq5l wants to merge 1 commit into
rolldown:mainfrom
tlq5l:fix/debouncer-upgrade-root-mode-124

Conversation

@tlq5l

@tlq5l tlq5l commented Nov 23, 2026

Copy link
Copy Markdown

add_root returned early when the path was already a root, so watching a path with WatchMode::non_recursive() and then with WatchMode::recursive() kept the root non-recursive and the file ID cache never scanned its subdirectories. It now upgrades the stored mode the way the watchers do (Recursive over NonRecursive, TrackPath over NoTrack) and adds the path to the cache again when the mode changes.

fixes #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

debouncer-full does not upgrade existing watches

1 participant