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
In VS Code, semantic token theme colors override textmate token colors (even when they are user defined). This usually makes sense, as the semantic tokens are intended to provide more specific information about tokens than what is available from syntax alone.
However, based on the output of VS Code's Developer: Inspect Editor Tokens and Scopes command, it appears that typescript-language-server labels all template strings with the generic string scope. As a result, template strings will not receive syntax highlighting when semantic tokens are enabled.
As you can see from the image below, the textmate grammar knows that animal is a variable inside of a template string, but the semantic token string is taking precedence.
The text was updated successfully, but these errors were encountered:
In VSCode you are not using this server but VSCode's built-in code (which this server is based on). So you should report your issue in VSCode repo and if it's deemed a bug, the fix might potentially trickle down to this server.
Problem
In VS Code, semantic token theme colors override textmate token colors (even when they are user defined). This usually makes sense, as the semantic tokens are intended to provide more specific information about tokens than what is available from syntax alone.
However, based on the output of VS Code's
Developer: Inspect Editor Tokens and Scopes
command, it appears thattypescript-language-server
labels all template strings with the genericstring
scope. As a result, template strings will not receive syntax highlighting when semantic tokens are enabled.As you can see from the image below, the
textmate
grammar knows thatanimal
is a variable inside of a template string, but the semantic tokenstring
is taking precedence.The text was updated successfully, but these errors were encountered: