roslyn:change_signature
Modify method signatures by adding, removing, renaming, or reordering parameters with preview capability to assess impact across all call sites before applying changes.
Instructions
Change a method signature and preview impact on all call sites.
ACTIONS: add (new param), remove, rename, reorder parameters. WORKFLOW: (1) Call with preview=true (default) to see affected call sites, (2) Review changes, (3) Call with preview=false to apply. OUTPUT: oldSignature, newSignature, list of call sites needing updates. IMPORTANT: Uses ZERO-BASED coordinates (editor line - 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to source file containing the method | |
| line | Yes | Zero-based line number on the method | |
| column | Yes | Zero-based column number | |
| changes | Yes | Array of changes to apply | |
| preview | No | Preview mode (default: true). Set to false to apply changes. |