aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
diff options
context:
space:
mode:
authorPascal Kuthe2023-03-30 16:27:00 +0000
committerBlaž Hrastnik2023-03-31 06:19:32 +0000
commita48d1a4abc0d23d6bc3cfda714d87b9fa4484da8 (patch)
tree6263bcbd14b7ee3dc9d204750b40389183151e67 /helix-lsp/src
parent7a69c40524833f93c3df32ba457a1a658472bb4b (diff)
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.
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index 3dab6bc5..f9496338 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -538,8 +538,8 @@ impl Client {
}),
general: Some(lsp::GeneralClientCapabilities {
position_encodings: Some(vec![
- PositionEncodingKind::UTF32,
PositionEncodingKind::UTF8,
+ PositionEncodingKind::UTF32,
PositionEncodingKind::UTF16,
]),
..Default::default()