Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abeforgit opened this issue Mar 14, 2025 · 2 comments

Comments

@abeforgit
Copy link

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: Saghen/blink.cmp#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
@NullVoxPopuli
Copy link
Contributor

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

@abeforgit
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants