Skip to main content

position_to_offset

Function position_to_offset 

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

Convert an LSP Position into a byte offset using a Rope.