filter files inside ignored directories in the watcher

isIgnored only matched a directory path itself, not files beneath it, so
a recursive watch still surfaced changes inside .dart_tool/, build/, etc.
Linux usually hid this because inotify drops the nested creates; macOS
FSEvents delivers them, so the tree reacted to churn it should ignore.
Check each ancestor segment as a directory.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jeroen Schweitzer
2026-06-03 10:00:29 +02:00
co-authored by Claude Opus 4.8
parent fa1e71d175
commit da4bc267cb
2 changed files with 18 additions and 1 deletions
+4
View File
@@ -58,6 +58,10 @@ heading, and (b) bumping `pubspec.yaml` `version:` in the same commit.
### Fixed
- File watcher no longer emits change events for files inside ignored
directories (`.dart_tool/`, `build/`, etc.): it now checks ancestor dirs,
not just the leaf. Most visible on macOS, where FSEvents delivers the nested
creates that inotify usually drops.
- The Claude sidebar's Activity / Team / Config sub-tabs are now keyboard-
activatable: they were pointer-only (raw `GestureDetector`), so Tab traversal
skipped them and Enter/Space did nothing. They now use `ClideTappable`