pub fn compute_line_offsets( text: &String, is_at_line_start: bool, text_offset: Option<usize>, ) -> Vec<usize>