In a diagnostic group, mark the highest-severity diagnostic as primary
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
401b59be5c
commit
0e51365770
7 changed files with 100 additions and 63 deletions
|
@ -2205,7 +2205,7 @@ impl Editor {
|
|||
}
|
||||
|
||||
pub fn show_next_diagnostic(&mut self, _: &ShowNextDiagnostic, cx: &mut ViewContext<Self>) {
|
||||
let selection = self.selections::<usize>(cx).last().unwrap();
|
||||
let selection = self.newest_selection(cx);
|
||||
let buffer = self.buffer.read(cx.as_ref());
|
||||
let diagnostic_group_id = dbg!(buffer
|
||||
.diagnostics_in_range::<_, usize>(selection.head()..buffer.len())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue