Use better name for the method that closes deleted buffers

Kirill Bulatov and Max created

co-authored-by: Max <max@zed.dev>

Change summary

crates/workspace/src/pane.rs      | 2 +-
crates/workspace/src/workspace.rs | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)

Detailed changes

crates/workspace/src/pane.rs 🔗

@@ -1305,7 +1305,7 @@ impl Pane {
         &self.toolbar
     }
 
-    pub fn delete_item(
+    pub fn handle_deleted_project_item(
         &mut self,
         entry_id: ProjectEntryId,
         cx: &mut ViewContext<Pane>,

crates/workspace/src/workspace.rs 🔗

@@ -539,7 +539,9 @@ impl Workspace {
 
                 project::Event::DeletedEntry(entry_id) => {
                     for pane in this.panes.iter() {
-                        pane.update(cx, |pane, cx| pane.delete_item(*entry_id, cx));
+                        pane.update(cx, |pane, cx| {
+                            pane.handle_deleted_project_item(*entry_id, cx)
+                        });
                     }
                 }