-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris enhancement
Milestone
Description
Problem
I'm always frustrated to see that while the semantic token type for annotations should be annotation but :
- The
semantic token typefor annotations override and required is currently set asproperty. - The
semantic token typefor annotation Deprecated is currently set asclass.
Due to the above problem one can't assign distinct colors to properties and annotations.
Solution I'd like
Please set the semantic token type as annotation for all annotations including but not limited to Deprecated, override and required .
According to official docs , any class can be transformed into an annotation, as long as they provide a const constructor and since annotations are prefixed by @ so they are easy to be recognized and assigned the semantic token type as annotation.
shujaatak and tbm98
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris enhancement

