Skip to content

Commit

Permalink
fix: Regression from d491e23
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jun 26, 2023
1 parent b33516f commit 8d39a81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,9 @@ impl Document {
diagnostic.line = self.text.char_to_line(diagnostic.range.start);
}

self.diagnostics
.sort_unstable_by_key(|diagnostic| diagnostic.range);

// Update the inlay hint annotations' positions, helping ensure they are displayed in the proper place
let apply_inlay_hint_changes = |annotations: &mut Rc<[InlineAnnotation]>| {
if let Some(data) = Rc::get_mut(annotations) {
Expand Down

0 comments on commit 8d39a81

Please sign in to comment.