Add different semantic token type
for class' properties
and method's or normal variables
#3618
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is enhancement
Milestone
Problem
I'm always frustrated to see that the
semantic token type
for both class properties and local variables in class methods are set as variable and hence highlighted with the same color! (I have modified the color, see the below details section)In VS Code, I enabled Developer: Inspect Editors Tokens and Scopes to compare the semantic token type and modifiers for both class properties and variables but unfortunately they are same so one can't set distinct colors for them to easily differentiate them.
Because of the same
semantic token type
asvariable
, one can't customize a class property's declaration color using the following:Solution I'd like
Please set the
semantic token type
for class properties asproperty
and set the
semantic token type
for normal variables asvariable
.More details
I added the following to settings.json to highlight variables with this #bc5fd3 color:
But it highlights the properties of the classes with the same color too!
The text was updated successfully, but these errors were encountered: