Skip to content

API to tell editor to trigger rename after applying refactoring #17852

@mjbvz

Description

@mjbvz

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

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions