-
Notifications
You must be signed in to change notification settings - Fork 285
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
Show completions with and without params #699
base: develop
Are you sure you want to change the base?
Conversation
This is an interesting idea, thanks @muffinmad! @andfoy, please review this one. |
This is why I disabled this completion snippets completely. Is it worth creating a different variable completely for this? As it won't make any sense to enable |
At first I was going to use
include_params described as bool so I'm not sure if string is allowed.
Maybe
Or both variants of completion can be used if |
Having only snippets in completion is little annoying indeed so both variants of completion is used now when |
In some cases I don't want completion with snippets:
Assume cursor is at
|
and completions are invoked. Applying completion will insert snippet and I must delete it in order to have just class/function name.IMO there are no way we can properly decide to include params or not.
My proposal is to include both candidates without and with params in completions list.
This PR add new option
include_params_both
. Withinclude_params
andinclude_params_both
enabled completions list will include both variants.There also side change:
label
is always equal toinsertText
in completion item. Is there any reason to completion label include all params?