API to tell editor to trigger rename after applying refactoring #17852
Labels
Bug
A bug in TypeScript
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Fixed
A PR has been merged for this issue
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
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 appliedA 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.The text was updated successfully, but these errors were encountered: