You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Semantic highlighting seems to remove syntax highlighting for JavaScript files #537
As reported here: spring-projects/spring-tools#702 (comment) - the semantic highlighting of LSP4E seems to cause the regular syntax highlighting for JavaScript files to (more or less) go away. This doesn't look right to me, but I don't have deep insights into this area. WDYT?
I am happy that it fixed the issue for you. Just in case you are interested, I think your LS supports semantic highlight and is sending token information back, but you have not configured a way to map those tokens to a style. If that is so it is a pity that you do not use the information to improve the presentation.
it looks like either TM4E is not properly configured or the server sends tokens which have no style set on the client side. Maybe you should check org.eclipse.lsp4e.operations.semanticTokens.TokenTypeMapper.apply(String) to understand which one it is (that is, when it returns null).
Activity
mickaelistria commentedon Mar 8, 2023
I think it's related to #517 and/or #522
rubenporras commentedon Mar 8, 2023
Yes, @martinlippert , could you retry with the latest snapshot?
martinlippert commentedon Mar 8, 2023
@rubenporras Works perfectly now, thanks!!! So closing this one here.
rubenporras commentedon Mar 8, 2023
I am happy that it fixed the issue for you. Just in case you are interested, I think your LS supports semantic highlight and is sending token information back, but you have not configured a way to map those tokens to a style. If that is so it is a pity that you do not use the information to improve the presentation.
martinlippert commentedon Mar 8, 2023
@rubenporras Actually, we use the WWD support for JavaScript here, so looks like the token <-> style mapping should be included there, right?
rubenporras commentedon Mar 9, 2023
it looks like either TM4E is not properly configured or the server sends tokens which have no style set on the client side. Maybe you should check org.eclipse.lsp4e.operations.semanticTokens.TokenTypeMapper.apply(String) to understand which one it is (that is, when it returns null).