-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Feature request: "Change Signature" refactoring #39842
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
Comments
@saif97 - thanks for the feedback. To clarify - is this a bug report or a feature request? |
cc @jwren |
Are all Dart refactorings ( |
Feature request I guess. The feature is already available in IntelliJ Idea for Java development. However, It doesn't work for Dart.
In this picture, I tried to do the same in Dart code but as you can see the command isn't there & pressing Ctrl + F6 doesn't show the window either. No exceptions are thrown. |
Changed to a feature request. I am glad the refactorings are working as expected. This is just not one of the refactorings that we happen to offer. |
@devoncarew Probably |
Any updates? |
any updates on this? |
Nothing concrete. We are hope to have some time this quarter to work on improving our refactoring support, but we haven't yet decided which refactorings we will be adding. This refactoring is definitely on our radar, though there are some limitations in LSP that might require us to implement a set of smaller refactorings that together could be used to achieve the same effect. That might not be ideal, but might be better than no support. We'll know more after we've had time to investigate what's possible and what isn't. |
There have been a couple of refactorings added since I last commented. They are, unfortunately, not available in IntelliJ at this point, but are available in VS Code. There is now a 'Move to file' refactoring to help re-organize code in libraries. There are also some experimental refactorings to convert some or all of the positional parameters to be named parameters and to move parameters left in the parameter list. Both implement a portion of the kinds of changes that a 'Change signature' refactoring would be expected to make, but can be done without implementing a per-client dialog. It's unlikely that we'll be able to provide the full-functioned refactoring asked for here, as much as we'd like to. So, as much as I don't want to, I'm going to close this issue. If there are other small-grained refactorings like these that you would like us to add, please open an issue for each of them. |
Uh oh!
There was an error while loading. Please reload this page.
This is my very first time posting issue on GitHub, so excuse me if I did it wrong
IntelliJ idea has a really cool and time-saving refactoring method signatures feature. Unfortunately, for some reason, it doesn't work in IntelliJ Idea.
I've found this issue in IntelliJ's YouTrack 4 years ago which redirected me here.
Flutter 1.12.13+hotfix.5 • channel stable •
https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (7 days ago) •
2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0
Using Windows, chrome.
The text was updated successfully, but these errors were encountered: