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
When I have Volar enabled, some variables in TypeScript lose their colors.
I used the Inspect Editor Tokens And Scopes command to see what was happening, and it seems Volar is causing TypeScript variables to lose their semantic token type. Instead, they are only keeping their more generic textmate scopes, which is causing the loss of nuance in syntax highlighting.
Here you can see how a .ts file looks when Volar is DISABLED:
And here you can see the syntax highlighting issues when Volar is ENABLED:
Notice that in the first screenshot, TypeScript knows that the variable userName is of semantic type parameter. But, in the second screenshot, it only knows the more generic textmate scopes. This problem is affecting all variables, so TypeScript can no longer distinguish the difference between variables defined with const, let, and arguments.
I have tried disabling Volar's TS Plugin, but it didn't make a difference.
I would be extremely grateful if you could look into this bug.
Thank you ✨!
The text was updated successfully, but these errors were encountered:
When I have Volar enabled, some variables in TypeScript lose their colors.
I used the
Inspect Editor Tokens And Scopes
command to see what was happening, and it seems Volar is causing TypeScript variables to lose theirsemantic token type
. Instead, they are only keeping their more generictextmate scopes
, which is causing the loss of nuance in syntax highlighting.Here you can see how a
.ts
file looks when Volar is DISABLED:And here you can see the syntax highlighting issues when Volar is ENABLED:
Notice that in the first screenshot, TypeScript knows that the variable
userName
is of semantic typeparameter
. But, in the second screenshot, it only knows the more generictextmate scopes
. This problem is affecting all variables, so TypeScript can no longer distinguish the difference between variables defined withconst
,let
, and arguments.I have tried disabling Volar's TS Plugin, but it didn't make a difference.
I would be extremely grateful if you could look into this bug.
Thank you ✨!
The text was updated successfully, but these errors were encountered: