pub fn offset_to_position(source: &str, offset: usize) -> Position
Convert a byte offset into the source string into an LSP position.