File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,8 @@ function _completion_kind(b)
293
293
return CompletionItemKinds. Value
294
294
elseif b. type == StaticLint. CoreTypes. DataType
295
295
return CompletionItemKinds. Struct
296
+ elseif b. type === nothing || b. type isa SymbolServer. DataTypeStore
297
+ return CompletionItemKinds. Variable
296
298
else
297
299
return CompletionItemKinds. Enum
298
300
end
Original file line number Diff line number Diff line change 133
133
@test any (item. label == " βbb" for item in completion_test (4 , 2 ). items)
134
134
@test any (item. label == " bβb" for item in completion_test (5 , 2 ). items)
135
135
end
136
+
137
+ @testset " completion kinds" begin
138
+ Kinds = LanguageServer. CompletionItemKinds
139
+ # issue #872
140
+ settestdoc ("""
141
+ function f(kind_variable_arg)
142
+ kind_variable_local = 1
143
+ kind_variable_
144
+ end
145
+ """ )
146
+ items = completion_test (2 , 18 ). items
147
+ @test any (i -> i. label == " kind_variable_local" && i. kind == Kinds. Variable, items)
148
+ @test any (i -> i. label == " kind_variable_arg" && i. kind == Kinds. Variable, items)
149
+ end
You can’t perform that action at this time.
0 commit comments