mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
Negotiate LSP Position Encoding (#5894)
So far LSP always required that `PositionEncoding.characters` is an UTF-16 offset. Now that LSP 3.17 is available in `lsp-types` request the server to send char offsets (UTF-32) or byte offsets (UTF-8) instead. For compatability with old servers, UTF-16 remains as the fallback as required by the standard.
This commit is contained in:
parent
6929a12f29
commit
93c7afc4ed
5 changed files with 49 additions and 14 deletions
|
@ -19,7 +19,7 @@ anyhow = "1.0"
|
|||
futures-executor = "0.3"
|
||||
futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false }
|
||||
log = "0.4"
|
||||
lsp-types = { version = "0.93", features = ["proposed"] }
|
||||
lsp-types = { version = "0.94" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue