Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix git watching on linux (#12989)

Conrad Irwin95c69d069679
diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rs
index ce967082dc9..b020a5a876f 100644
--- a/crates/worktree/src/worktree.rs
+++ b/crates/worktree/src/worktree.rs
@@ -3751,6 +3751,7 @@ impl BackgroundScanner {
statuses,
});
}
+ self.watcher.add(child_abs_path.as_ref()).log_err();
} else if child_name == *GITIGNORE {
match build_gitignore(&child_abs_path, self.fs.as_ref()).await {
Ok(ignore) => {