coc-python icon indicating copy to clipboard operation
coc-python copied to clipboard

Is there a way to keep method signatures up or open them back up like there is in jedi-vim?

Open levihb opened this issue 3 years ago • 0 comments

In jedi-vim if you type the following, with | being the cursor

def my_method(a, b, c, d):
    pass

my_method(1, 2, 3|

Then it will show (a, b, *c*. d) (* being the bold one we're on), just as it does in coc-python. But then suppose we made a mistake when we typed 2, and really meant 4. If we move back to:

my_method(1, 2|, 3

jedi-vim will then show (a, *b*, c, d). But with coc-python the completion instead just disappears, and we lose the signature suggestion.

Another example is let's say we have the following:

other_method('hello', 'ab|c', 30.1)

In jedi-vim it will correctly bring the signature back up, with the bold one being the one we're on ('abc'). But coc-python also doesn't recognize this. If you try to open suggestions it just brings up normal suggestions.

I've tried coc-python with both jedi and Microsoft's language server, and both have this issue. Could this feature be added?

levihb avatar Sep 03 '20 23:09 levihb