x/tools/internal/lsp: handle unicode code points that are encoded as multiple bytes #29149
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Suggested
Issues that may be good for new contributors looking for work to do.
Milestone
Repro case:
In the case above, jumping to definition on
x
would jump you to the middle of the""
. Completing on theп
also inserts half ofп
code point. We need to handle the conversions, since the Go standard library uses UTF-8 and LSP uses UTF-16.relevant: microsoft/language-server-protocol#376
The text was updated successfully, but these errors were encountered: