Skip to content

Commit

Permalink
LSP: Fix offset encoding test case
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Mills <[email protected]>
  • Loading branch information
the-mikedavis and StratusFearMe21 committed Mar 6, 2025
1 parent b423ed4 commit c4d314d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-lsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ mod tests {

let mut source = Rope::from_str("[\n\"🇺🇸\",\n\"🎄\",\n]");

let transaction = generate_transaction_from_edits(&source, edits, OffsetEncoding::Utf8);
let transaction = generate_transaction_from_edits(&source, edits, OffsetEncoding::Utf16);
assert!(transaction.apply(&mut source));
assert_eq!(source, "[\n \"🇺🇸\",\n \"🎄\",\n]");
}
}

0 comments on commit c4d314d

Please sign in to comment.