diff --git a/zed/src/worktree.rs b/zed/src/worktree.rs index d40669a845298e1d681824362827e2eccb5b2d13..e9a5509462d3d8299be84d6c96590512ca62aeb2 100644 --- a/zed/src/worktree.rs +++ b/zed/src/worktree.rs @@ -403,6 +403,8 @@ impl Snapshot { .insert(child.inode()); } } + + self.clear_descendants(child.inode(), &mut edits); } edits.push(Edit::Insert(child)); }