Skip to content

Conversation

sgasho
Copy link
Contributor

@sgasho sgasho commented Aug 18, 2025

related: #18149

Summary

"Go to Assignments" for local variables as an initial implementation.
New detections like field accesses can be added to crates/ide/src/goto_assignments.rs but I wanted to reduce the diffs for this PR.
I'm gonna add other detections in another PR.

Evidence

for codes like this,
スクリーンショット 2025-08-19 0 44 32

we can select "Go to Assignments",
スクリーンショット 2025-08-19 0 44 24

and all assignments, including def, are shown.
The "a" in println() is not shown because it is not an assignment.
スクリーンショット 2025-08-19 0 44 40

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 18, 2025
@sgasho sgasho force-pushed the feat/18149_goto_assignments_local_vars branch 2 times, most recently from ce84d56 to 8748702 Compare August 18, 2025 16:16
@sgasho sgasho force-pushed the feat/18149_goto_assignments_local_vars branch from 8748702 to fbc6269 Compare August 18, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants