mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 04:08:13 +00:00
We currently provide UTF-8 positions, since our source representation is UTF-8 and we use byte offsets as column numbers, but the LSP protocol default is UTF-16 column positions. Negotiate UTF-8 positions where possible; this is supported by essentially every LSP client other than VS Code. In the case where we select a UTF-16 position, we continue to not do any actual conversions, so our column offsets in such cases will continue to be wrong on non-ASCII source files in VS Code. Assisted by: Claude Code