File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 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)
293293 return CompletionItemKinds. Value
294294 elseif b. type == StaticLint. CoreTypes. DataType
295295 return CompletionItemKinds. Struct
296+ elseif b. type === nothing || b. type isa SymbolServer. DataTypeStore
297+ return CompletionItemKinds. Variable
296298 else
297299 return CompletionItemKinds. Enum
298300 end
Original file line number Diff line number Diff line change 133133 @test any (item. label == " βbb" for item in completion_test (4 , 2 ). items)
134134 @test any (item. label == " bβb" for item in completion_test (5 , 2 ). items)
135135end
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