When showing the next diagnostic, advance to the next *primary* one
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
0e51365770
commit
643545e91e
1 changed files with 1 additions and 0 deletions
|
@ -2209,6 +2209,7 @@ impl Editor {
|
||||||
let buffer = self.buffer.read(cx.as_ref());
|
let buffer = self.buffer.read(cx.as_ref());
|
||||||
let diagnostic_group_id = dbg!(buffer
|
let diagnostic_group_id = dbg!(buffer
|
||||||
.diagnostics_in_range::<_, usize>(selection.head()..buffer.len())
|
.diagnostics_in_range::<_, usize>(selection.head()..buffer.len())
|
||||||
|
.filter(|(_, diagnostic)| diagnostic.is_primary)
|
||||||
.next())
|
.next())
|
||||||
.map(|(_, diagnostic)| diagnostic.group_id);
|
.map(|(_, diagnostic)| diagnostic.group_id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue