@@ -793,32 +793,6 @@ request_initialize :: proc(
793
793
signatureTriggerCharacters := []string {" (" , " ," }
794
794
signatureRetriggerCharacters := []string {" ," }
795
795
796
- token_type := type_info_of (SemanticTokenTypes).variant.(runtime.Type_Info_Named).base.variant.(runtime.Type_Info_Enum)
797
- token_modifier := type_info_of (SemanticTokenModifiers).variant.(runtime.Type_Info_Named).base.variant.(runtime.Type_Info_Enum)
798
-
799
- token_types := make (
800
- []string ,
801
- len (token_type.names),
802
- context .temp_allocator,
803
- )
804
- token_modifiers := make (
805
- []string ,
806
- len (token_modifier.names),
807
- context .temp_allocator,
808
- )
809
-
810
- for name, i in token_type.names {
811
- if name == " EnumMember" {
812
- token_types[i] = " enumMember"
813
- } else {
814
- token_types[i] = strings.to_lower (name, context .temp_allocator)
815
- }
816
- }
817
-
818
- for name, i in token_modifier.names {
819
- token_modifiers[i] = strings.to_lower (name, context .temp_allocator)
820
- }
821
-
822
796
response := make_response_message (
823
797
params = ResponseInitializeParams {
824
798
capabilities = ServerCapabilities {
@@ -844,8 +818,8 @@ request_initialize :: proc(
844
818
range = config.enable_semantic_tokens,
845
819
full = config.enable_semantic_tokens,
846
820
legend = SemanticTokensLegend {
847
- tokenTypes = token_types ,
848
- tokenModifiers = token_modifiers ,
821
+ tokenTypes = semantic_token_type_names ,
822
+ tokenModifiers = semantic_token_modifier_names ,
849
823
},
850
824
},
851
825
inlayHintProvider = config.enable_inlay_hints,
0 commit comments