x/tools/gopls: switch to utf-8 based offset #63470
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
LSP 3.17 and newer introduced
general.positionEncodings
and started to provide a way for client/server to agree and operate on UTF-8. https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentsFor backwards compatibility, LSP spec recommends URF-16 as the mendatory encoding though.
I think we can utilize the telemetry here to monitor the clients' encoding supports. If most editors are ready to handle utf-8, we can consider to use utf-8.
The text was updated successfully, but these errors were encountered: