LSP: add argument(s) to function #5438
Replies: 2 comments 1 reply
-
|
alternative name: |
Beta Was this translation helpful? Give feedback.
-
|
Hello! When would this action be available? What would happen when there already is some arguments for the function? How would it decide where to put them? What would happen to all the other references to this function in the codebase?
Isn't this the same amount of work except the order in which the actions are performed at the same?
vs
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I'm used to having a code action to add a new argument to a function based on usage.
i.e.:
would change the code to this:
This, in my experience, is especially helpful when scaffolding mostly empty functions early in a new project.
As it allows quickly adding new arguments to a function call.
So instead of having to
goto definitionI can just
add argument to functionand keep doing what i was doing and deal with it later.Ideally this would work with multiple arguments at a time as well.
Beta Was this translation helpful? Give feedback.
All reactions