Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Bulk Removal of Function Parameter #78070

Open
shishawn opened this issue Dec 9, 2024 · 1 comment
Open

Feature Request: Bulk Removal of Function Parameter #78070

shishawn opened this issue Dec 9, 2024 · 1 comment
Labels
feature A feature request or implementation refactoring Area → source tooling: refactoring source tooling Area: IDE support, SourceKit, and other source tooling SourceKit Area → source tooling: SourceKit

Comments

@shishawn
Copy link

shishawn commented Dec 9, 2024

Motivation

Currently, when removing a parameter from a function, developers must manually locate and update all call sites where the function is invoked. This process can be time-consuming and error-prone, especially in large codebases where the function is widely used.

Proposed solution

Enhance the Swift refactoring capabilities with a "Remove Parameter" functionality that:

  1. Allows a developer to select a parameter in a function declaration and remove it.
  2. Automatically updates all call sites, removing the corresponding argument from each invocation.

Alternatives considered

N/A

Additional information

No response

@shishawn shishawn added feature A feature request or implementation triage needed This issue needs more specific labels labels Dec 9, 2024
@AnthonyLatsis AnthonyLatsis added refactoring Area → source tooling: refactoring source tooling Area: IDE support, SourceKit, and other source tooling SourceKit Area → source tooling: SourceKit and removed triage needed This issue needs more specific labels labels Dec 11, 2024
@shishawn
Copy link
Author

Hi, I’m Shawn, and I’d like to work on this as my first contribution. Looking forward to contributing to the Swift project!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature request or implementation refactoring Area → source tooling: refactoring source tooling Area: IDE support, SourceKit, and other source tooling SourceKit Area → source tooling: SourceKit
Projects
None yet
Development

No branches or pull requests

2 participants