You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is not the correct channel to ask this
If I have
def foo(param1: float, param2: float): ...
I want to type foo and get
foo(
param1=$1,
param2=$2,
)$0
Does coc-pyright support this right now?
a. I think I've done enough research to say no because Pyright itself doesn't but want to double check
b. I know, however, that coc-pyright add () after function names which Pyright itself doesn't add (code link)
If not, would this be a good addition to coc-pyright (not Pyright)?
If yes, how hard would it be to implement and can I get some pointers on how to implement it?
The text was updated successfully, but these errors were encountered:
coc-pyright doesn't support this, and there's no way to implement this because Pyright didn't return parameters info, let's use foo for example, here's what Pyright returns:
The markdown document is what you got in the floating window. Can we use the document to implement this? yes or no, we need to resolve all items, parses the document, add parameters to insertText like https://github.com/fannheyward/coc-pyright/blob/master/src/middleware.ts#L121, this is too expensive because Pyright returns 120+ items after inputing f. Also, use the markdown document maybe fail because it's document, maybe includes additional info that needs to deal.
Apologies if this is not the correct channel to ask this
If I have
I want to type foo and get
a. I think I've done enough research to say no because Pyright itself doesn't but want to double check
b. I know, however, that coc-pyright add
()
after function names which Pyright itself doesn't add (code link)The text was updated successfully, but these errors were encountered: