From 95c69d069679c3d2894401ad53b7f6f4b73d7448 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Thu, 13 Jun 2024 11:59:57 -0600 Subject: [PATCH] Fix git watching on linux (#12989) Release Notes: - N/A Co-authored-by: Nathan --- crates/worktree/src/worktree.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rs index ce967082dc..b020a5a876 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) => {