Properly toggle diagnostics

This commit is contained in:
Kirill Bulatov 2023-11-06 19:29:31 +02:00
parent 128d3696ad
commit bfb860c06c

View file

@ -227,6 +227,7 @@ impl ProjectDiagnosticsEditor {
fn toggle_warnings(&mut self, _: &ToggleWarnings, cx: &mut ViewContext<Self>) {
self.include_warnings = !self.include_warnings;
self.paths_to_update = self.current_diagnostics.clone();
self.update_excerpts(None, cx);
cx.notify();
}