pub fn position_in_range(pos: Position, range: Range) -> bool
Checks whether a cursor position falls within an LSP range (inclusive on both ends).