Skip to content

Commit

Permalink
Prefer utf-8 over utf-32
Browse files Browse the repository at this point in the history
Utf-8 support has been around for a while as an unstable feature but
utf-32 is fairly new. A bunch of LS (like rust-analyzer) added this in
a pinch, but it's pretty broken right now. The performance overhead is
not very large (still a lot better than utf-16). We can switch back
once the ecosystem has matured.
  • Loading branch information
pascalkuthe authored and archseer committed Mar 31, 2023
1 parent 7a69c40 commit a48d1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-lsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ impl Client {
}),
general: Some(lsp::GeneralClientCapabilities {
position_encodings: Some(vec![
PositionEncodingKind::UTF32,
PositionEncodingKind::UTF8,
PositionEncodingKind::UTF32,
PositionEncodingKind::UTF16,
]),
..Default::default()
Expand Down

0 comments on commit a48d1a4

Please sign in to comment.