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

Implement textDocument/documentHighlight #484

Merged
merged 2 commits into from
Jul 23, 2022

Conversation

gpanders
Copy link
Contributor

@gpanders gpanders commented May 8, 2022

This is an attempt to implement the textDocument/documentHighlight response.

documentHighlight is essentially the same as textDocument/references with the only differences being:

  1. There are no parameters sent in the request
  2. The response includes a DocumentHighlightKind

For now I've hardcoded the kind to simply Text, but a more sophisticated implementation would correctly set the kind to Read or Write where appropriate. I will look into doing this, but help is appreciated.

In my limited testing this seems to mostly work, but there are still some bugs I need to chase down. I wanted to go ahead and open this PR though to get some early feedback on the approach.

@SuperAuguste
Copy link
Member

Hey, sorry for the late response period! May you please fix these merge conflicts and I'll get this merged ASAP! Thanks :)

@gpanders gpanders force-pushed the documentHighlight branch from 7b69abb to b71a83b Compare July 23, 2022 01:38
@gpanders gpanders marked this pull request as ready for review July 23, 2022 01:38
@gpanders
Copy link
Contributor Author

Done, thanks.

@SuperAuguste
Copy link
Member

LGTM despite the odd CI failure! Btw I think #554 will ease the implementation of Read and Write support if that's something you'd be interested in implementing!

@SuperAuguste SuperAuguste merged commit 39e4a56 into zigtools:master Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants