Skip to main content

offset_to_position

Function offset_to_position 

Source
pub fn offset_to_position(source: &str, offset: usize) -> Position
Expand description

Convert a byte offset into the source string into an LSP position.