mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
Skip over unnecessary code diagnostics when hitting f8
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
7155dabf5b
commit
c6c72a7249
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue