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.
pull/6476/head^2
Pascal Kuthe 2 years ago committed by Blaž Hrastnik
parent 7a69c40524
commit a48d1a4abc
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -538,8 +538,8 @@ impl Client {
}), }),
general: Some(lsp::GeneralClientCapabilities { general: Some(lsp::GeneralClientCapabilities {
position_encodings: Some(vec![ position_encodings: Some(vec![
PositionEncodingKind::UTF32,
PositionEncodingKind::UTF8, PositionEncodingKind::UTF8,
PositionEncodingKind::UTF32,
PositionEncodingKind::UTF16, PositionEncodingKind::UTF16,
]), ]),
..Default::default() ..Default::default()

Loading…
Cancel
Save