Expand description
Map UTF-8 byte offsets to LSP positions (UTF-16 code units).
Functionsยง
- byte_
offset_ to_ position - Convert a UTF-8 byte index in
sourceto LSP(line, character)with UTF-16character. - byte_
range_ to_ lsp_ range - Byte range (start inclusive, end exclusive) to LSP
(line, char)pairs. - point_
range_ to_ lsp_ range - Map tree-sitter
Pointto byte offset then to LSP range.