Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Properly toggle diagnostics
Kirill Bulatovbfb860c06c7f
diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rsindex 1ec4105fbda..e794771434a 100644--- a/crates/diagnostics/src/diagnostics.rs+++ b/crates/diagnostics/src/diagnostics.rs@@ -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();}