mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-07 12:18:03 +00:00
![]() This PR adds support for the "selection range" language server feature. This feature was recently requested by a ty user in [this feature request](https://github.com/astral-sh/ty/issues/882). This feature allows a client to implement "smart selection expansion" based on the structure of the parse tree. For example, if you type "shift-ctrl-right-arrow" in VS Code, the current selection will be expanded to include the parent AST node. Conversely, "shift-ctrl-left-arrow" shrinks the selection. We will probably need to tune the granularity of selection expansion based on user feedback. The initial implementation includes most AST nodes, but users may find this to be too fine-grained. We have the option of skipping some AST nodes that are not as meaningful when editing code. Co-authored-by: UnboundVariable <unbound@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |