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
This commit is contained in:
commit
254b369624
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue