Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking: Code Refactorings #15561

Open
1 of 8 tasks
psfinaki opened this issue Jul 5, 2023 · 2 comments
Open
1 of 8 tasks

Tracking: Code Refactorings #15561

psfinaki opened this issue Jul 5, 2023 · 2 comments
Labels
Area-LangService-CodeRefactorings Suggested but not necessary code actions. Screwdrivers in VS.
Milestone

Comments

@psfinaki
Copy link
Member

psfinaki commented Jul 5, 2023

Note
This is a "meta" issue for tracking purposes since GitHub does not support special types of issues.

Code refactorings are code actions that are available but not necessary to be used. In VS, they are represented by screwdrivers.

We should make them easy to create, test, and extend.

Improvements for existing ones:

Ideas for the ones:

Done:

@kerams
Copy link
Contributor

kerams commented Jul 5, 2023

I have a tip for one: having written a new function/type, use the screwdriver to pull it into an existing signature file.

Or what about extracting a bool function parameter into a Yes | No RQA union type.

@psfinaki
Copy link
Member Author

psfinaki commented Jul 5, 2023

@kerams absolutely - great ideas both, I created tickets for them.

We'll see when we get to this, and this will also require some new testing machinery. OTOH, we only have 3 code refactorings right now so I don't see major code overhaul happening there as it is happening now in code fixes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-CodeRefactorings Suggested but not necessary code actions. Screwdrivers in VS.
Projects
Status: New
Development

No branches or pull requests

2 participants