Skip to content
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

fix: Type check for snippet description #1832 #1833

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Forsigg
Copy link

@Forsigg Forsigg commented Feb 21, 2024

Add type check for item.detail that contains description, In that case while navigating in menu for select snippet item.detail contains table, but expected string

#1832

@ghost
Copy link

ghost commented Mar 16, 2024

@hrsh7th, can you please merge this as quickly as possible? I got the same error as him(#1832). When I added the codes that he wrote into my local nvim cmp codes, it worked without making any errors. Please check it and merge it. @Forsigg THank you!

@hrsh7th
Copy link
Owner

hrsh7th commented Mar 17, 2024

IMO, the item.detail as table is not compliant fir LSP spec. So I tgink it should be fixed in source side.

@rbjorklin
Copy link

I also just hit this and the commit in this PR works as a work-around.

@hrsh7th What is the "source side" in this scenario? Should this bug be reported against another project? If so, which one?

@Shougo
Copy link

Shougo commented Apr 29, 2024

@hrsh7th What is the "source side" in this scenario? Should this bug be reported against another project? If so, which one?

If it is source side problem, the source should check the item.detail instead.

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

Successfully merging this pull request may close these issues.

4 participants