zls icon indicating copy to clipboard operation
zls copied to clipboard

Frequently incorrect CompletionItem.Kind

Open Jarred-Sumner opened this issue 4 years ago • 0 comments

zls is really helpful overall.

zls seems to be reporting CompletionItem.Kind.EnumKind(?) for most symbols. image

For function arguments, it should match TypeScript Language Server's behavior: image

I think it's CompletionItem.Kind.Variable. But I'm not 100% sure.

For struct, it also reports CompletionItem.Kind.Enum: image

Instead, it should report CompletionItem.Kind.Struct: image

When creating a new struct, autocomplete suggestions should report CompletionItem.Kind.Property, but it currently reports CompletionItem.Kind.Enum: image

It would also be really awesome if it provided detail text in there, like what TypeScript's language server does (notice the (parameter): text)

Why this matters: CompletionItem.Kind is an information-dense way to filter through completions quickly, since the icon changes

Jarred-Sumner avatar Apr 21 '21 17:04 Jarred-Sumner