glint icon indicating copy to clipboard operation
glint copied to clipboard

[1.5.2] Types defined with `type` get reported as "Text" kind for completion engines

Open abeforgit opened this issue 11 months ago • 2 comments

When I swapped completion engines in neovim, I noticed I wasn't getting completions for types which are defined with the type keyword anymore.

After some digging, context: https://github.com/Saghen/blink.cmp/issues/1437 , I noticed that it was glint reporting these completions as "Text" rather than something else.

The new completion engine I was using filtered these out by default. I was able to configure it to not do that, so completion works again for me, but I figured I'd report it here.

Reproduction is fairly straightforward, it doesn't seem to matter whether the type is defined in the same file or elsewhere in the project.

Working code (| marks the point at which completion is requested):

interface Test { test: string};
const test: Te|  // completes correctly, with kind "Interface"

slightly problematic code:

type Test = { test: string};
const test: Te|  // completes, but with kind "Text" -> some engines filter this out by default

abeforgit avatar Mar 14 '25 10:03 abeforgit

do you have a repo I can try to reproduce this issue in?

I have an old glint@unstable here, and this does what I expect:

Image

NullVoxPopuli avatar Mar 15 '25 01:03 NullVoxPopuli

Are you sure? Look at the icon in your completion popup, it says Tt instead of alpha like the other types.

I think that's likely the icon for text values.

Also for me, everything works, after telling blink.cmp to stop ignoring "text" kind completions.

So I do think its still an issue, albeit a very minor one

abeforgit avatar Mar 15 '25 09:03 abeforgit