You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently try to use getting some basic syntax highlights with SemanticTokensLegend / org.eclipse.lsp4j.services.TextDocumentService.semanticTokensFull(SemanticTokensParams) due to the specification this requires a non trivial transformation of types/modifiers/locations into a stream of ints.
To ease implementation (and add validation) I think it would be usefull to have a method in SemanticTokensLegend that helps in encoding things for example returning an IntStream and taking the keyword, the modifier and a location as input.
This method can the for example fail if invalid token types are send and so on.
The text was updated successfully, but these errors were encountered:
I'm currently try to use getting some basic syntax highlights with
SemanticTokensLegend
/org.eclipse.lsp4j.services.TextDocumentService.semanticTokensFull(SemanticTokensParams)
due to the specification this requires a non trivial transformation of types/modifiers/locations into a stream of ints.To ease implementation (and add validation) I think it would be usefull to have a method in
SemanticTokensLegend
that helps in encoding things for example returning anIntStream
and taking the keyword, the modifier and a location as input.This method can the for example fail if invalid token types are send and so on.
The text was updated successfully, but these errors were encountered: