I try to update a color theme I made (simple focus) for VS Code, but I never found any guide for theme creators on how to use the new semantic tokens...
I have set "semanticHighlighting" : true
in my theme
For example I want to color classes, and there are specific textMate scopes for class definition (entity.name.type.class.js
) and creation (entity.name.type.js
), but when using a class otherwise – like MyClass.props = {}
– the only scope is a generic variable.other.object.js
which I don't want to touch for it messes others things. So when I inspect scopes, I see the semantic token class
that also match all classes definitions and creation, but how are we suppose to use this?
I tried naively to just add a scope "class", which isn't working.
All I can find about semantic tokens is related to creating a custom language, nothing for theme creators, so my guess was that it was just suppose to work like textMate scopes, and yet it doesn't. Please someone enlighten me!