When the file is deleted via project panel, close it in editors

This commit is contained in:
Kirill Bulatov 2023-05-19 18:04:12 +03:00
parent 3984cc6d39
commit 583b15badc
5 changed files with 222 additions and 1 deletions

View file

@ -270,7 +270,7 @@ impl TestAppContext {
.borrow_mut()
.pop_front()
.expect("prompt was not called");
let _ = done_tx.try_send(answer);
done_tx.try_send(answer).ok();
}
pub fn has_pending_prompt(&self, window_id: usize) -> bool {