Open ddnexus opened 3 years ago
It's not yet implemented. Semantic tokens are a relatively new feature in LSP, and the Solargraph extension has never provided its own syntax highlighting. I'll look into adding this capability to the gem.
That would be great! Thank you!!!
As stated in the VSCode Semantic Highlight Guide:
Solargraph knows when a code entity is a variable or a method call, but the VSCode grammar does not. Indeed for the grammar
my_method('my_param')
is identified as anentity.name.function
whilemy_method
is identified as avariable
because it has no parenthesis. That results in having the same method highlighted in 2 different ways, which is very confusing and annoying with ruby files in VSCode.It looks like Solargraph is not adding the additional token that would allow the themes to distinguish variables from methods. Is that a bug or is that not yet implemented?