Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #21771 from Wilfred/watch_dirs_recursively
fix: File watcher should watch directories recursively
Lukas Wirth 6 weeks ago
parent 16e4436 · parent 81cd966 · commit 3e832f3
-rw-r--r--crates/vfs-notify/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/vfs-notify/src/lib.rs b/crates/vfs-notify/src/lib.rs
index f55ce24597..428b19c50b 100644
--- a/crates/vfs-notify/src/lib.rs
+++ b/crates/vfs-notify/src/lib.rs
@@ -324,7 +324,7 @@ impl NotifyActor {
fn watch(&mut self, path: &Path) {
if let Some((watcher, _)) = &mut self.watcher {
- log_notify_error(watcher.watch(path, RecursiveMode::NonRecursive));
+ log_notify_error(watcher.watch(path, RecursiveMode::Recursive));
}
}