Skip to content
Discussion options

You must be logged in to vote

Hey @RobertWalterU3d,

as the LSP spec already says, it depends on the client capabilities. vscode (as one example of such a language client) would just ignore a custom SemanticTokenTypes entry by default. You can add custom type behavior through a theming extension though. See this stackoverflow thread.

So, this might be out-of-scope for what the semantic highlighting can even provide.

You're right, Langium or the language server protocol in general aren't designed to provide this information. It's always up to the client how they want to display certain tokens.

What I would like to do is have a different formatting for my language's cross references

On another note, formatting in the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RobertWalterU3d
Comment options

Answer selected by RobertWalterU3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants