-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
Problem
Using the new extract method refactoring in TS 2.5, extracted methods currently are always named newFunction*
. Renaming the extracted method requires a second step after the refactoring as been applied
A better flow would automatically trigger the rename on the new function after the refactoring has been applied.
Proposal
In the getEditsForRefactor
response, return an additional field indicating that an editor should perform another action, such as rename, after the refactor has been applied.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue