Nanyx
PlaygroundPackages

Refactorings

Planned editor tools for changing programs safely

The refactorings built so far are described for users on VS Code extension, and how a refactoring is built, with the rules every refactoring follows, in Refactorings in the Deep dives section. This page keeps the planned ones.

Nanyx should have the best editing experience we can manage, and that means the editor giving people the tools to change a program without breaking it. This workstream is those tools: rename, expand and shrink selection, extract and inline, and the small rewrites that save typing. Its issues carry the refactoring label and the Refactoring stream on the project.

Planned

Each refactoring below has an issue with its design; none is built yet.

RefactoringIssue
Change a def’s signature: add, remove or reorder parameters, updating every call#1822
Make a parameter named or positional, updating every call#1827
Move a def to another module#1823
Implement a context as a quick fix on a missing-instance error#1959
Move a file and update the imports of it by path#1831