mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
stable sort lsp edits (#11357)
This commit is contained in:
@@ -503,7 +503,7 @@ pub mod util {
|
||||
) -> Transaction {
|
||||
// Sort edits by start range, since some LSPs (Omnisharp) send them
|
||||
// in reverse order.
|
||||
edits.sort_unstable_by_key(|edit| edit.range.start);
|
||||
edits.sort_by_key(|edit| edit.range.start);
|
||||
|
||||
// Generate a diff if the edit is a full document replacement.
|
||||
#[allow(clippy::collapsible_if)]
|
||||
|
Reference in New Issue
Block a user