ruff/crates/ty_python_semantic/src
Andrew Gallant 55100209c7
[ty] IDE: add support for `object.<CURSOR>` completions (#18468)
This PR adds logic for detecting `Name Dot [Name]` token patterns,
finding the corresponding `ExprAttribute`, getting the type of the
object and returning the members available on that object.

Here's a video demonstrating this working:

https://github.com/user-attachments/assets/42ce78e8-5930-4211-a18a-fa2a0434d0eb

Ref astral-sh/ty#86
2025-06-05 11:15:19 -04:00
..
module_resolver [ty] Fix `--python` argument for Windows, and improve error messages for bad `--python` arguments (#18457) 2025-06-05 08:19:15 +01:00
semantic_index [ty] type narrowing by attribute/subscript assignments (#18041) 2025-06-04 17:24:27 -07:00
types [ty] IDE: add support for `object.<CURSOR>` completions (#18468) 2025-06-05 11:15:19 -04:00
util [ty] Infer the Python version from the environment if feasible (#18057) 2025-05-30 21:22:51 +00:00
ast_node_ref.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
db.rs [ty] Infer the Python version from the environment if feasible (#18057) 2025-05-30 21:22:51 +00:00
dunder_all.rs [ty] type narrowing by attribute/subscript assignments (#18041) 2025-06-04 17:24:27 -07:00
lib.rs [ty] type narrowing by attribute/subscript assignments (#18041) 2025-06-04 17:24:27 -07:00
lint.rs [ty] Ignore `possibly-unresolved-reference` by default (#17934) 2025-05-08 17:44:56 +02:00
list.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
module_name.rs Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
node_key.rs Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
place.rs [ty] type narrowing by attribute/subscript assignments (#18041) 2025-06-04 17:24:27 -07:00
program.rs [ty] Fix `--python` argument for Windows, and improve error messages for bad `--python` arguments (#18457) 2025-06-05 08:19:15 +01:00
python_platform.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
semantic_index.rs [ty] type narrowing by attribute/subscript assignments (#18041) 2025-06-04 17:24:27 -07:00
semantic_model.rs [ty] IDE: add support for `object.<CURSOR>` completions (#18468) 2025-06-05 11:15:19 -04:00
site_packages.rs [ty] Fix `--python` argument for Windows, and improve error messages for bad `--python` arguments (#18457) 2025-06-05 08:19:15 +01:00
suppression.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
types.rs [ty] IDE: add support for `object.<CURSOR>` completions (#18468) 2025-06-05 11:15:19 -04:00
unpack.rs [ty] type narrowing by attribute/subscript assignments (#18041) 2025-06-04 17:24:27 -07:00