diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index fadf29a5d5..a80af9ea5f 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -4211,6 +4211,7 @@ impl Editor { }; let group = diagnostics.find_map(|entry| { if entry.diagnostic.is_primary + && !entry.diagnostic.is_unnecessary && !entry.range.is_empty() && Some(entry.range.end) != active_primary_range.as_ref().map(|r| *r.end()) {