mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
fix(lsp): use only utf-16 in default client positionEncodings (#23903)
The Nvim client does not yet support multiple offset encodings for clients in the same buffer. Until it does, stick to utf-16 by default.
This commit is contained in:
parent
21187e1c73
commit
ca26ec3438
@ -44,11 +44,9 @@ The following new APIs or features were added.
|
|||||||
• Neovim's LSP client now always saves and restores named buffer marks when
|
• Neovim's LSP client now always saves and restores named buffer marks when
|
||||||
applying text edits.
|
applying text edits.
|
||||||
|
|
||||||
• Nvim's LSP client now advertises the general.positionEncodings client
|
• Nvim now supports the `positionEncoding` server capability. If a server
|
||||||
capability to indicate to servers that it supports utf-8, utf-16, and utf-32
|
responds with the `positionEncoding` capability in its initialization
|
||||||
encodings. If the server responds with the positionEncoding capability in
|
response, Nvim automatically sets the client's `offset_encoding` field.
|
||||||
its initialization response, Nvim automatically sets the client's
|
|
||||||
`offset_encoding` field.
|
|
||||||
|
|
||||||
• Dynamic registration of LSP capabilities. An implication of this change is
|
• Dynamic registration of LSP capabilities. An implication of this change is
|
||||||
that checking a client's `server_capabilities` is no longer a sufficient
|
that checking a client's `server_capabilities` is no longer a sufficient
|
||||||
|
@ -636,9 +636,7 @@ function protocol.make_client_capabilities()
|
|||||||
return {
|
return {
|
||||||
general = {
|
general = {
|
||||||
positionEncodings = {
|
positionEncodings = {
|
||||||
'utf-8',
|
|
||||||
'utf-16',
|
'utf-16',
|
||||||
'utf-32',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
textDocument = {
|
textDocument = {
|
||||||
|
Loading…
Reference in New Issue
Block a user