Fix editor tests after changing the semantics of is_dirty

This commit is contained in:
Antonio Scandurra 2022-06-17 12:57:40 +02:00
parent 052222c91c
commit 5654684d30
3 changed files with 28 additions and 8 deletions

View file

@ -568,7 +568,10 @@ impl workspace::Item for ProjectDiagnosticsEditor {
}
fn should_update_tab_on_event(event: &Event) -> bool {
matches!(event, Event::Saved | Event::Dirtied | Event::TitleChanged)
matches!(
event,
Event::Saved | Event::DirtyChanged | Event::TitleChanged
)
}
fn set_nav_history(&mut self, nav_history: ItemNavHistory, cx: &mut ViewContext<Self>) {