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

Add syntax highlighting and javadoc to language server (VSCode) #2978

Merged
merged 2 commits into from Sep 29, 2021

Conversation

Rawi01
Copy link
Collaborator

@Rawi01 Rawi01 commented Sep 28, 2021

This PR fixes #2950

For the syntax highlighting I added the language server SemanticTokensVisitor to hide generated lombok nodes. I also renamed the patch method because it now handles more things than only refactorings.

To fix the javadoc I added patches for the language server copy of JavadocContentAccess2, they modified it to also support markdown. I also had to add some reflection code to call CompilationUnit::originalFromClone because the language server implementation uses a working copy for compilation and the original compilation unit to resolve the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] In VSCode, the java code highlighting is disabled under lombok annotation
2 participants