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

use document highlighting to show matching control flow statements #2004

Open
Techatrix opened this issue Aug 20, 2024 · 0 comments
Open

use document highlighting to show matching control flow statements #2004

Techatrix opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request priority:low Low priority item

Comments

@Techatrix
Copy link
Member

The textDocument/documentHighlight request can be used to highlight control flow statements like continue and break with their for or while loop and vice versa. The end result should look similar to the following demo:

out.mp4

This could also be applied to symbol references i.e "Find All References" / "Go to References". Perhaps other keywords like defer, try, return could get similar features.

@Techatrix Techatrix added enhancement New feature or request priority:low Low priority item labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low Low priority item
Projects
None yet
Development

No branches or pull requests

1 participant