Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-sort diagnostics after transaction transform (helix-editor#3895)
Applying document-change transactions to diagnostic ranges is not stable with respect to the ordering of diagnostics. This can cause diagnostics to become temporarily unordered with some edits to a document, which can eventually break some invariants/assumptions in syntax::merge. With this change, Document::diagnostics are always sorted.
- Loading branch information