-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Language Server Protocol: Document Highlights #1802
Comments
A document highlight is a range inside a text document which deserves special attention. Usually a document highlight is visualized by changing the background color of its range. |
Looks like the link to the |
It seems like the current
This method returns a single
but Che 5.0.0 is not using the new lsp4j library yet. For the mean time, I can return the first occurence of text to highlight, but I think that Che would need to integrate the Lsp4j lib as soon as a release is published. |
Providing support for occurrences highlighting, with a restriction due a bug in the io.typefox.lsapi.services 0.3.0 bundle, which assumes that the language server will return a single occurrence to highlight, instead of a list of occurrences. Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
@vparfonov @evidolob Can we close this now? Is there anything else that needs to be done? |
Providing support for occurrences highlighting, with a restriction due a bug in the io.typefox.lsapi.services 0.3.0 bundle, which assumes that the language server will return a single occurrence to highlight, instead of a list of occurrences. Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
The document highlight request is sent from the client to the server to resolve a document highlights for a given text document position.
Changed:: in 2.0 the requests uses TextDocumentPositionParams with a proper textDocument and position property. In 1.0 the uri of the referenced text document was inlined into the params object.
https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#document-highlights
The text was updated successfully, but these errors were encountered: