| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This is an interesting idea, thanks @muffinmad! @andfoy, please review this one. |
Sorry, something went wrong.
|
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 include_params_both without the original one. |
Sorry, something went wrong.
At first I was going to use both value of the include_params variable for this. But in include_params described as bool so I'm not sure if string is allowed.Maybe int will fit? Like:
Or both variants of completion can be used if include_params is enabled. Having only snippets in completion is little annoying. |
Sorry, something went wrong.
|
Having only snippets in completion is little annoying indeed so both variants of completion is used now when include_params is set. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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. With include_params and include_params_both enabled completions list will include both variants.
There also side change: label is always equal to insertText in completion item. Is there any reason to completion label include all params?