Feature Request: Extract Class should have option to copy some dependencies across rather than move/access them
When extracting a class with injected dependencies I often have significant cleanup to replace <_originalClassInstance>._someDependency.Method() by _someDependency.Method(), and fix up the constructure to inject them, create the field etc.
It would be great to have the option, for each dependency, rather than just move or leave, to have the option to “copy” it across to the new class, whcih should ceate the constructor, and the field
Please sign in to leave a comment.
Hi David,
Thank you for sharing your feedback with us. In our system, we have logged a feature request related to your use case: RSRP-503013 Extract Class: refactoring should include option to support Dependency Injection
You are welcome to subscribe and receive all updates concerning this request.