pub fn app_to_lsp_position(buffer: &Buffer, p: Position) -> Option<Position>Expand description
Convert an editor-side Position (line + utf-8 byte column)
into the LSP-side lattice_lsp::lsp_types::Position (line + utf-16 code-
unit column). Returns None when the line index is past the
end of the buffer – e.g. cursor on a sentinel row past EOF.