Remove logic for marking worktree entries as collapsed

This commit is contained in:
Max Brunsfeld 2023-06-15 15:58:29 -07:00
parent f910d8fe3e
commit aa6f2f1816
6 changed files with 15 additions and 118 deletions

View file

@ -451,9 +451,6 @@ impl ProjectPanel {
Ok(ix) => {
expanded_dir_ids.remove(ix);
self.update_visible_entries(Some((worktree_id, entry_id)), cx);
self.project.update(cx, |project, cx| {
project.mark_entry_collapsed(worktree_id, entry_id, cx);
});
cx.notify();
break;
}
@ -477,7 +474,6 @@ impl ProjectPanel {
self.project.update(cx, |project, cx| {
match expanded_dir_ids.binary_search(&entry_id) {
Ok(ix) => {
project.mark_entry_collapsed(worktree_id, entry_id, cx);
expanded_dir_ids.remove(ix);
}
Err(ix) => {