Clear descendants of existing children when scanning a directory

Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-04-22 18:42:11 +02:00
parent 9723e46af4
commit 928ce0eec8

View file

@ -403,6 +403,8 @@ impl Snapshot {
.insert(child.inode());
}
}
self.clear_descendants(child.inode(), &mut edits);
}
edits.push(Edit::Insert(child));
}