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:
Gregory Anders
2023-06-05 08:21:23 -05:00
committed by GitHub
parent 21187e1c73
commit ca26ec3438
2 changed files with 3 additions and 7 deletions

View File

@@ -636,9 +636,7 @@ function protocol.make_client_capabilities()
return {
general = {
positionEncodings = {
'utf-8',
'utf-16',
'utf-32',
},
},
textDocument = {