When the file is deleted via project panel, close it in editors
This commit is contained in:
@@ -537,6 +537,12 @@ impl Workspace {
|
||||
cx.remove_window();
|
||||
}
|
||||
|
||||
project::Event::DeletedEntry(entry_id) => {
|
||||
for pane in this.panes.iter() {
|
||||
pane.update(cx, |pane, cx| pane.delete_item(*entry_id, cx));
|
||||
}
|
||||
}
|
||||
|
||||
_ => {}
|
||||
}
|
||||
cx.notify()
|
||||
|
||||
Reference in New Issue
Block a user