-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
More IDE features for control flow keywords #17517
Comments
@rustbot claim |
For the |
|
I've encountered some difficulties handling macros: Currently, for functions, I can correctly handle three scenarios (see GIF):
and mixture of them. These can be handled using |
They can be mapped just fine, it's just that we have no API in |
Currently, placing the cursor over Should we implement a similar approach for goto-definition and goto-references? 🤔 Or changed it to be:
|
I think for async blocks we might just wanna highlight await and return together. |
We currently highlight relevant control flow structures when the cursor is on a relevant keyword, an example being highlighting all
await
s when on an async fn'sasync
keyword, or all loop control flow keywords when it is on the loops keyword. We can do more things here I'd say.Go to def/decl
onreturn
could go the relevant closure/fn,continue
andbreak
to the corresponding loop (or block for labeled blocks), go to references could do the same as the highlightingThe text was updated successfully, but these errors were encountered: