Skip to content

The Config of SemanticTokenScopes has affected other languages. #971

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

Closed
iwyvi opened this issue Apr 25, 2024 · 0 comments · Fixed by #973
Closed

The Config of SemanticTokenScopes has affected other languages. #971

iwyvi opened this issue Apr 25, 2024 · 0 comments · Fixed by #973

Comments

@iwyvi
Copy link

iwyvi commented Apr 25, 2024

When installing this plugin, there are some problems with the semantic token type in other languages.

The following examples are in a typescript file.

Installed:
Snipaste_2024-04-25_18-01-29

Not installed:
Snipaste_2024-04-25_18-01-03

I think language-specific scopes should be set in the package.json.

"semanticTokenScopes": [
{
"scopes": {
"interface": [
"entity.name.tag"
],
"modifier": [
"punctuation.definition.tag"
],
"type": [
"support.type.primitive"
]
}
}
],

https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#custom-textmate-scope-mappings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant