Refactoring -> Rename should rename fields/variables/parameters #39138
Labels
Area-IDE
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
Feature - Rename
Feature Request
Need Design Review
The end user experience design needs to be reviewed and approved.
Projects
Milestone
This issue has been moved from a ticket on Developer Community.
Often using DI we have things like
public MyClass(IFirstInterface firstInterface, ISecondInterface secondInterface)
{
_firstInterface = firstInterface;
_secondInterface = secondInterface;
}
Currently, if i rename IFirstInterface -> ISomethingElse it only renames the interface, not the fields, variables and parameters.
public MyClass(ISomethingElse firstInterface, ISecondInterface secondInterface)
{
_firstInterface = firstInterface;
_secondInterface = secondInterface;
}
Really it should go further and do the same as Resharper:
public MyClass(ISomethingElse somethingElse, ISecondInterface secondInterface)
{
_somethingElse= somethingElse;
_secondInterface = secondInterface;
}
Original Comments
Jane Wu [MSFT] on 10/8/2019, 05:26 AM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We’ll provide an update once the issue has been triaged by the product team.
The text was updated successfully, but these errors were encountered: