Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render matched macro arm on hover of macro calls #16057

Merged
merged 2 commits into from Apr 18, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 8, 2023

Fixes #4028, its a different take on the idea. I don't like go to being changed here simply because we can't point the focus range on the name anymore as we usually do, and some editors might use this feature (and the focus range) for certain other things. We could instead add a new hover action for this to move to the arm directly (or maybe make go to implementation jump to the arm?)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 8, 2023
@bors
Copy link
Collaborator

bors commented Dec 18, 2023

☔ The latest upstream changes (presumably #16145) made this pull request unmergeable. Please resolve the merge conflicts.

@Veykril Veykril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 3, 2024
@Veykril Veykril marked this pull request as ready for review April 18, 2024 09:00
@Veykril
Copy link
Member Author

Veykril commented Apr 18, 2024

Not too happy with how we render it in hover right now (the hover acction would make more sense), but I don't want to spend the time on that right now.

@Veykril
Copy link
Member Author

Veykril commented Apr 18, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 18, 2024

📌 Commit 4135696 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Apr 18, 2024

⌛ Testing commit 4135696 with merge 08c706f...

@bors
Copy link
Collaborator

bors commented Apr 18, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 08c706f to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Goto definition on macro-by-example call should jump to the macro arm that matches
3 participants