-
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
Semantic highlighting for function exit points #4691
Comments
Yessss I want this a lot. The problem is, I don't see an LSP request we can use for it :0( Maybe abuse document highlight? |
That takes in a position though. You couldn't do this with semantic highlighting and token modifiers? |
@kjeremy that's exatcly the UI -- higlights of all exit points activates when you are on a single exit point (and probably it makes sense to trigger it on return type as well). |
For the refrece, IntellijJ impl is here: https://github.com/intellij-rust/intellij-rust/blob/master/src/main/kotlin/org/rust/ide/highlight/RsHighlightExitPointsHandlerFactory.kt |
Ah! I thought it was always active. This would be really nice to have. |
always active is definitely doable, but it can't be themed as a background change (but could be given bold or other font styling). In the theme that I'm working on, making the |
I think we could just use |
As seen in IntelliJ
The text was updated successfully, but these errors were encountered: