Skip to content

Commit 4d14600

Browse files
committed
Prefer utf-8 over utf-32
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.
1 parent e0a0968 commit 4d14600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helix-lsp/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ impl Client {
538538
}),
539539
general: Some(lsp::GeneralClientCapabilities {
540540
position_encodings: Some(vec![
541-
PositionEncodingKind::UTF32,
542541
PositionEncodingKind::UTF8,
542+
PositionEncodingKind::UTF32,
543543
PositionEncodingKind::UTF16,
544544
]),
545545
..Default::default()

0 commit comments

Comments
 (0)