-
Notifications
You must be signed in to change notification settings - Fork 28
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 token MultilineTokenSupport #401
Comments
Have you a usecase? |
test script here: If the language server detects that the client does not support multiline tokens, it will return multiple single-line tokens, each with a length of 9999. According to LSP, overly long tokens should not continue to the next line. However, LSP4IJ continues them to the following lines, causing the string color to change. |
Could you share please your LSP traces, because I would like to start writting tests for sem1ntic tokens by using real LSP traces. I need your full trace with initialize which return legend and semanticTokens/full |
@CppCXY do you have some coloration, or does semantic fail with a stack trace error? |
no stack trace, |
Are you sure that your semanticFull trace is for the content of your file that you have attached? Could you add a screenshot with the result of the problem please. |
This is because Luals splits tokens that span multiple lines into several single-line tokens and sets the token length to 9999, which is in accordance with the language server specifications. |
Fixes redhat-developer#401 Signed-off-by: azerr <[email protected]>
Fixes redhat-developer#401 Signed-off-by: azerr <[email protected]>
If the length of a token exceeds the end of this line, it should not continue to the next line.
The text was updated successfully, but these errors were encountered: