language: Add fallback for enum member completion highlight (#27929)
i tried to use `variant` but it wasnt giving any color despite my theme definitely having a color for it, am i doing something wrong? i think `property` is an alright fallback before:  after:  Release Notes: - N/A
This commit is contained in:
parent
4896e0bc02
commit
b4653c15b8
1 changed files with 3 additions and 0 deletions
|
@ -1948,6 +1948,9 @@ impl CodeLabel {
|
|||
Kind::ENUM => grammar
|
||||
.highlight_id_for_name("enum")
|
||||
.or_else(|| grammar.highlight_id_for_name("type")),
|
||||
Kind::ENUM_MEMBER => grammar
|
||||
.highlight_id_for_name("variant")
|
||||
.or_else(|| grammar.highlight_id_for_name("property")),
|
||||
Kind::FIELD => grammar.highlight_id_for_name("property"),
|
||||
Kind::FUNCTION => grammar.highlight_id_for_name("function"),
|
||||
Kind::INTERFACE => grammar.highlight_id_for_name("type"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue