Skip to content

Refactoring: Extract variable/function, Inline variable #94

Description

@andycraig

Robust refactoring is on the roadmap as a long term/difficult task. Is it time to introduce extract variable and extract function as refactoring options? I think the new XML parsing approach could help here, for example in identifying the appropriate location to insert the variable definition when extracting a variable.

VSCode refactoring overview
VSCode-specific, but gives some indication of how the refactoring Code Actions are expected to be used.

TypeScript language server extract symbol code
They do a lot of checks - I don’t think this level of thoroughness is needed initially.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions