Add support for textDocument/documentHighlight request #308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, thank you all for the great project, which has helped me a lot while writing VHDL code!
In most of the other language servers, I use a lot the
documentHighlight
feature, which highlights all the occurrences of a symbol in the current file. Noticing that it was missing from this LS I attempted my own implementationSee the result here:
Video.del.2024-06-04.00-08-52.mp4
Edit
It seems that VScode has some kind of fallback that performs the same result even if the server does not have this capability! (I am actually using another editor - Zed - that would not do the same)
See the before and after in Zed:
Before
Video.del.2024-06-04.00-20-05.mp4
After
Video.del.2024-06-04.00-19-45.mp4