aboutsummaryrefslogtreecommitdiff
path: root/crates/vfs-notify/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/vfs-notify/src/lib.rs')
-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 b3d7c414c..a2f4e0c5b 100644
--- a/crates/vfs-notify/src/lib.rs
+++ b/crates/vfs-notify/src/lib.rs
@@ -196,7 +196,7 @@ impl LoaderActor {
196 let is_dir = entry.file_type().is_dir(); 196 let is_dir = entry.file_type().is_dir();
197 let is_file = entry.file_type().is_file(); 197 let is_file = entry.file_type().is_file();
198 let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap(); 198 let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
199 if is_dir { 199 if is_dir && watch {
200 self.watch(abs_path.clone()); 200 self.watch(abs_path.clone());
201 } 201 }
202 let rel_path = abs_path.strip_prefix(&path)?; 202 let rel_path = abs_path.strip_prefix(&path)?;