We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b33516f commit 8d39a81Copy full SHA for 8d39a81
helix-view/src/document.rs
@@ -1136,6 +1136,9 @@ impl Document {
1136
diagnostic.line = self.text.char_to_line(diagnostic.range.start);
1137
}
1138
1139
+ self.diagnostics
1140
+ .sort_unstable_by_key(|diagnostic| diagnostic.range);
1141
+
1142
// Update the inlay hint annotations' positions, helping ensure they are displayed in the proper place
1143
let apply_inlay_hint_changes = |annotations: &mut Rc<[InlineAnnotation]>| {
1144
if let Some(data) = Rc::get_mut(annotations) {
0 commit comments