Selection Range
selectionRangeSelects semantically meaningful code ranges by expanding or shrinking selection to enclosing syntactic constructs like statements, blocks, and functions.
Instructions
Get semantically meaningful selection ranges for smart expand/shrink selection. Returns nested spans that represent progressively larger syntactic constructs. Useful for structural code selection (e.g., select expression → statement → block → function).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path (absolute or relative to cwd) | |
| locations | Yes | Array of positions to get selection ranges for |