Skip to main content

offset_to_position

Function offset_to_position 

Source
pub(crate) fn offset_to_position(offset: usize, rope: &Rope) -> Option<Position>
Expand description

Convert a byte offset to an LSP Position (line, column) using a Rope.