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

Support semantic tokens #1408

Merged
merged 2 commits into from
Apr 15, 2020
Merged

Support semantic tokens #1408

merged 2 commits into from
Apr 15, 2020

Conversation

Eskibear
Copy link
Contributor

This PR is about Semantic Highlighting. VS Code has already support to register providers via its APIs, LSP proposal is in progress, but it's not yet part of LSP for the moment.
In this PR, a delegate command to respond to the semantic token request, before it's merged into LSP in the coming version.

Basically the LS tells clients a list of encoded tokens and the legend, and then client is reponsible for applying the tokens with proper textmate scopes and related styles.

Two token types variable and method are supported.
Token modifiers include public, private, protected, abstract, final, static, deprecated

Below is how it looks in vscode after applying styles for some modifiers:

  • static: italic
  • final: bold underline
  • deprecated: rgb(#838080)

Screen Shot 2020-04-15 at 2 15 45 AM

Signed-off-by: Yan Zhang <yanzh@microsoft.com>

remove unused file

Signed-off-by: Yan Zhang <yanzh@microsoft.com>
Signed-off-by: Yan Zhang <yanzh@microsoft.com>
@fbricon fbricon merged commit c10847a into eclipse-jdtls:master Apr 15, 2020
@fbricon
Copy link
Contributor

fbricon commented Apr 15, 2020

Thanks @Eskibear!

@fbricon fbricon added this to the Mid April 2020 milestone Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants