From 88bbe748e909104440412131b807aae842011c9b Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 6 Nov 2023 19:35:49 +0200 Subject: [PATCH] Properly toggle diagnostics (#3243) Follow-up of https://github.com/zed-industries/zed/pull/3236 that fixes a bug introduced in that PR: diagnostics warning toggle stopped working. Release Notes: - N/A --- crates/diagnostics/src/diagnostics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs index 1ec4105fbdaf9c02fbadea88c02263c953795371..e794771434a0981fe5af2efa1ae19d9db7b0f523 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.include_warnings = !self.include_warnings; + self.paths_to_update = self.current_diagnostics.clone(); self.update_excerpts(None, cx); cx.notify(); }