Provide token modifiers for traversals (references) #836
Labels
enhancement
New feature or request
textDocument/semanticTokens
Semantic syntax highlighting
workspace/semanticTokens
This is in follow-up to #833
Background
In the above PR we introduce custom semantic token types and modifiers, to enable themes to address configuration parts more accurately and using more familiar names.
Modifiers per traversal segment
There are some ideas shared by a theme creator who mentioned they'd want to highlight each segment separately, i.e. for
data.aws_availability_zones.available.names
there would be 4 different modifiers.And there are some limitations discovered in hashicorp/vscode-terraform#574 (comment). That's not to say these are unsolvable but may present some challenges and additional overhead in implementation.
Modifiers for whole traversal
We could also provide modifier for the whole traversal, e.g. reuse
terraform-data
fordata.aws_availability_zones.available.names
and generally any references todata
blocks.Proposal
TODO
The text was updated successfully, but these errors were encountered: