Refactor VFS watch logic in ServeSession

- Simplified the VFS watch setup by removing the directory type check, allowing all entries to be watched directly.
- Improved code clarity and reduced complexity in the watching mechanism for project files.
This commit is contained in:
Joe 2026-03-06 23:43:06 -06:00
parent e79691012e
commit 1ab347f498

View file

@ -402,10 +402,8 @@ impl ServeSession {
.filter_entry(&passes_ignore)
.flatten()
{
if entry.file_type().is_dir() {
let _ = vfs.watch(entry.path());
watch_count += 1;
}
let _ = vfs.watch(entry.path());
watch_count += 1;
}
}
// Watch project folder non-recursively for project file edits.