on master help sign in
fix: Regression from d491e234f4eb4d8c3869f44ab71fedf022dc463e
commit8d39a81aa88a813c6a3e1734e5cb3c05fd723839 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 26 Jun 2023, 22:20 (3 years ago) parentb33516f
1 file changed+3
helix-view/src/document.rs+3
helix-view/src/document.rs+3
@@ -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) {