Skip to content

Conversation

@makingthematrix
Copy link

If the user adds an argument to the method call and opens the action menu when the new argument is highlighted, they should see now a new intention: "Add parameter(s) to a method". After choosing, a new parameter of the inferred type will be added the method's declaration, and the caret will be moved to the parameters clause, in the style of "Create Method".

Limitations:

  1. The action works only for arguments added to the first parameters clause. If the method has more clauses, the intention does not appear in the popup.
  2. The caret is moved to the first parameter in the clause even if new parameters start at subsequent places.

@makingthematrix
Copy link
Author

Screenshot for the limitation #1:
Screenshot 2025-10-14 at 15 28 11

Screenshot for the limitation #2:
Screenshot 2025-10-14 at 15 27 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant