ruff/crates/ty_ide/src
UnboundVariable 738246627f
[ty] Implemented support for "selection range" language server feature (#19567)
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>
2025-07-26 09:08:36 -07:00
..
completion.rs [ty] Sync vendored typeshed stubs (#19461) 2025-07-21 14:01:42 +01:00
doc_highlights.rs [ty] Added support for "document highlights" language server feature. (#19515) 2025-07-24 13:06:25 -07:00
docstring.rs [ty] Initial implementation of signature help provider (#19194) 2025-07-10 19:32:00 -07:00
document_symbols.rs [ty] Added support for "document symbols" and "workspace symbols" (#19521) 2025-07-25 13:07:38 -07:00
find_node.rs [ty] Implemented partial support for "find references" language server feature. (#19475) 2025-07-23 09:16:22 -07:00
goto.rs [ty] Added support for document highlights in playground. (#19540) 2025-07-25 08:55:40 -07:00
goto_declaration.rs Move fix suggestion to subdiagnostic (#19464) 2025-07-22 10:03:58 -04:00
goto_definition.rs Move fix suggestion to subdiagnostic (#19464) 2025-07-22 10:03:58 -04:00
goto_references.rs [ty] Added support for "document highlights" language server feature. (#19515) 2025-07-24 13:06:25 -07:00
goto_type_definition.rs Move fix suggestion to subdiagnostic (#19464) 2025-07-22 10:03:58 -04:00
hover.rs Use "python" for markdown code fences in on-hover content (#19082) 2025-07-03 10:50:34 +05:30
inlay_hints.rs [ty] Invert ty_ide and ty_project dependency (#19501) 2025-07-23 07:37:46 +00:00
lib.rs [ty] Implemented support for "selection range" language server feature (#19567) 2025-07-26 09:08:36 -07:00
markup.rs Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
references.rs [ty] Added support for "document highlights" language server feature. (#19515) 2025-07-24 13:06:25 -07:00
selection_range.rs [ty] Implemented support for "selection range" language server feature (#19567) 2025-07-26 09:08:36 -07:00
semantic_tokens.rs [ty] Added semantic token support for more identifiers (#19473) 2025-07-21 15:39:40 -07:00
signature_help.rs [ty] Fix bug #879 in signature help (#19542) 2025-07-24 16:26:14 -07:00
stub_mapping.rs [ty] Implement non-stdlib stub mapping for classes and functions (#19471) 2025-07-22 12:42:55 +00:00
symbols.rs [ty] Added support for "document symbols" and "workspace symbols" (#19521) 2025-07-25 13:07:38 -07:00
workspace_symbols.rs [ty] Added support for "document symbols" and "workspace symbols" (#19521) 2025-07-25 13:07:38 -07:00