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

OmniSharp#Complete don't deliver "kind" item #865

Closed
ulfbert-san opened this issue Oct 16, 2024 · 3 comments · Fixed by #866
Closed

OmniSharp#Complete don't deliver "kind" item #865

ulfbert-san opened this issue Oct 16, 2024 · 3 comments · Fixed by #866

Comments

@ulfbert-san
Copy link

Hello,

I want to filter the auto-completion suggestions. That's why I need the "kind" item (described here ":help complete-functions"). It's a flag, which kind of suggestions this actually is - method, class etc.

I don't have a custom method assign to &omnifunc. I use the default one from omnisharp-vim. Is it possible to add this item to the dictionary, that would be really nice! Or works this already and it's a bug on my system?

Or is there a workaround, to add this item? I'm really glad for any help.

Here is a log, when i type: "Console."

Suggestions.txt

Greetings ulfbert

@ulfbert-san
Copy link
Author

I found the solution. In this file:

\ 'WantReturnType': 'true'

You need to add this parameter:

https://github.com/OmniSharp/omnisharp-roslyn/blob/c16eb2a120ed7cee05ebc1bd7e50a63c9d398e08/src/OmniSharp.Abstractions/Models/v1/AutoComplete/AutoCompleteRequest.cs#L54

Can someone please do that? Or was there a reason, not to add this parameter?

@nickspoons
Copy link
Member

Hi @ulfbert-san,

Have a look at PR #866 and tell me what you think.

@ulfbert-san
Copy link
Author

Hi @nickspoons,

I tested it, works smooth 👍 No errors or unexpecting values in kind param. Thank you very much! <3

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 a pull request may close this issue.

2 participants