-
Notifications
You must be signed in to change notification settings - Fork 408
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
refine semantic highlighting #1416
Conversation
It's more straightforward to show visualized effect than request/response. Below are some legacy issues that could not be covered by syntax highlighting. Left: behavior after this PR, Right: previous redhat-developer/vscode-java#299 redhat-developer/vscode-java#338 redhat-developer/vscode-java#351 redhat-developer/vscode-java#707 |
cb41511
to
16066b5
Compare
Signed-off-by: Yan Zhang <[email protected]>
Signed-off-by: Yan Zhang <[email protected]> update test cases Signed-off-by: Yan Zhang <[email protected]>
Signed-off-by: Yan Zhang <[email protected]>
fc3f044
to
43614e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dramatically improves semantic highlighting. My main gripe about it is about the delay one sees between switching from one highlighting mode to another, when opening the file. Also highlighting is sometimes delayed as you type, but I'm not sure this is fixable, given that we need to wait for all CUs to be reconciled as-you-type
...e.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/semantictokens/SemanticTokensVisitor.java
Show resolved
Hide resolved
FYI, there's also some delay for TS (but I feel it's shorter compared with Java), also mentioned in Semantic Highlighting Overview/FAQ.
Agreed, it looks not feasible for the moment. |
Signed-off-by: Yan Zhang <[email protected]>
@Eskibear thanks for these improvements! |
References:
Semantic-Highlighting-Overview#token-classification
specs for Semantic Highlighting proposed in LSP 3.16
Change log for this PR
Fixed
Added
type
)namespace
)property
)Changed
readonly
instead offinal