From c6c72a7249acdc41e2a833e441da31605fb9b4ef Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 15 Mar 2022 15:55:39 +0100 Subject: [PATCH] Skip over unnecessary code diagnostics when hitting `f8` Co-Authored-By: Nathan Sobo --- crates/editor/src/editor.rs | 1 + 1 file changed, 1 insertion(+) 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()) {