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.
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.