Skip to content

Commit a312fc7

Browse files
0dinDfbricon
authored andcommitted
Add semantic tokens for records and constructors
Signed-off-by: 0dinD <[email protected]>
1 parent c24cd64 commit a312fc7

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,23 @@
6060
},
6161
{
6262
"id": "annotationMember",
63-
"superType": "function",
63+
"superType": "method",
6464
"description": "Style for annotation members."
6565
},
6666
{
6767
"id": "modifier",
6868
"superType": "keyword",
6969
"description": "Style for modifier keywords."
70+
},
71+
{
72+
"id": "record",
73+
"superType": "class",
74+
"description": "Style for records."
75+
},
76+
{
77+
"id": "recordComponent",
78+
"superType": "parameter",
79+
"description": "Style for record components."
7080
}
7181
],
7282
"semanticTokenModifiers": [
@@ -97,6 +107,10 @@
97107
{
98108
"id": "importDeclaration",
99109
"description": "Style for symbols that are part of an import declaration."
110+
},
111+
{
112+
"id": "constructor",
113+
"description": "Style for symbols that are constructors."
100114
}
101115
],
102116
"semanticTokenScopes": [
@@ -115,6 +129,9 @@
115129
],
116130
"keyword.documentation": [
117131
"keyword.other.documentation.javadoc.java"
132+
],
133+
"*.constructor": [
134+
"entity.name.function.java"
118135
]
119136
}
120137
}

0 commit comments

Comments
 (0)