fn offset_to_lsp_position(&self, offset: usize) -> lsp::Position {
        let line = self.content.byte_to_line(offset);

        let col_char = self.content.byte_to_char(offset);
        let col_char = self.content.char_to_utf16_cu(col_char);

        let line_char = self.content.line_to_char(line);
        let line_char = self.content.char_to_utf16_cu(line_char);

        let col_char = col_char - line_char;

        lsp::Position::new(line as u32, col_char as u32)
    }
/// Offset in the rope to lsp position.
Offset in the rope to lsp position.
Offset in the rope to lsp position .
fn offset_to_lsp_position(&self, offset: usize) -> lsp::Position {
        let line = self.content.byte_to_line(offset);
        let col_char = self.content.byte_to_char(offset);
        let col_char = self.content.char_to_utf16_cu(col_char);
        let line_char = self.content.line_to_char(line);
        let line_char = self.content.char_to_utf16_cu(line_char);
        let col_char = col_char - line_char;
        lsp::Position::new(line as u32, col_char as u32)
    }
fn offset_to_lsp_position ( & self , offset : usize ) -> lsp :: Position { let line = self . content . byte_to_line ( offset ) ; let col_char = self . content . byte_to_char ( offset ) ; let col_char = self . content . char_to_utf16_cu ( col_char ) ; let line_char = self . content . line_to_char ( line ) ; let line_char = self . content . char_to_utf16_cu ( line_char ) ; let col_char = col_char - line_char ; lsp :: Position :: new ( line as u32 , col_char as u32 ) }
Offset in the rope to lsp position.
Offset in the rope to lsp position .
&self
offset
usize
&self
offset
usize