Skip to content

Commit 8d39a81

Browse files
committed
fix: Regression from d491e23
1 parent b33516f commit 8d39a81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

helix-view/src/document.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,9 @@ impl Document {
11361136
diagnostic.line = self.text.char_to_line(diagnostic.range.start);
11371137
}
11381138

1139+
self.diagnostics
1140+
.sort_unstable_by_key(|diagnostic| diagnostic.range);
1141+
11391142
// Update the inlay hint annotations' positions, helping ensure they are displayed in the proper place
11401143
let apply_inlay_hint_changes = |annotations: &mut Rc<[InlineAnnotation]>| {
11411144
if let Some(data) = Rc::get_mut(annotations) {

0 commit comments

Comments
 (0)