@@ -284,28 +284,30 @@ end
284284function _completion_kind (b)
285285 if b isa StaticLint. Binding
286286 if b. type == StaticLint. CoreTypes. String
287- return 1
287+ return CompletionItemKinds . Text
288288 elseif b. type == StaticLint. CoreTypes. Function
289- return 2
289+ return CompletionItemKinds . Method
290290 elseif b. type == StaticLint. CoreTypes. Module
291- return 9
291+ return CompletionItemKinds . Module
292292 elseif b. type == Int || b. type == StaticLint. CoreTypes. Float64
293- return 12
293+ return CompletionItemKinds . Value
294294 elseif b. type == StaticLint. CoreTypes. DataType
295- return 22
295+ return CompletionItemKinds. Struct
296+ elseif b. type === nothing || b. type isa SymbolServer. DataTypeStore
297+ return CompletionItemKinds. Variable
296298 else
297- return 13
299+ return CompletionItemKinds . Enum
298300 end
299301 elseif b isa SymbolServer. ModuleStore || b isa SymbolServer. VarRef
300- return 9
302+ return CompletionItemKinds . Module
301303 elseif b isa SymbolServer. MethodStore
302- return 2
304+ return CompletionItemKinds . Method
303305 elseif b isa SymbolServer. FunctionStore
304- return 3
306+ return CompletionItemKinds . Function
305307 elseif b isa SymbolServer. DataTypeStore
306- return 22
308+ return CompletionItemKinds . Struct
307309 else
308- return 6
310+ return CompletionItemKinds . Variable
309311 end
310312end
311313
0 commit comments