-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactoring support #18
Comments
Another refactoring (which I believe is pretty simple) which I really miss from IntelliJ is the "Use named argument for current and subsequent arguments" action. Would be much appreciated if something like that could make its way into Metals! |
I would like to see from intellij: "remove unnecessary parentheses" which highlights the extra parentheses and allows to remove them via a code action. I would be willing to help out here but I guess some more basic work needs to be done before I can "just" write a code action, no idea where to start currently. |
Since we're slowly starting to tackle refactoring in Metals, this issue is not useful anymore in its current form. I propose to keep the feature requests more focused and open separate ones for each refactoring. So far we already support:
I'm going to close this issue and re-open single ones so that we can analyze and prioritize them separately. |
@co-category thanks for the encouragement! Feel free to open a feature request for specific refactors you consider essential to your workflow. As an aside, please try to keep a positive tone in your messages. Despite Metals being a lightweight alternative to IntelliJ, we do so with a spirit of positive OSS collaboration and we do not tolerate harsh tones against it or other projects. Thank you 🙏 |
Currently, Metals doesn't provide any refactoring support. For the upcoming v0.6, we have assigned a ticket to implement "rename symbol" (scalameta/metals#679).
After renaming, it would be nice to add basic refactoring actions such as:
add import for "not found: $NAME" compile errorsImport missing symbol added in Implement code action for importing missing symbols metals#1065Those would be good starting points and down the road we could introduce more advanced refactorings:
Some challenges:
Search terms: code actions, inspections
The text was updated successfully, but these errors were encountered: