Skip to content

The Config of SemanticTokenScopes has affected other languages. #971

Closed
@iwyvi

Description

@iwyvi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions