This issue has been moved from a ticket on Developer Community.
Well, the title is very concrete. Since Visual Studio 2022 there is a new rename box. I appreciate this, but there is a bug!
First of all: I am only talking about the option “Rename smybol’s file” that is only appearing when symbol’s name and symbol’s filename are equal!
How to reproduce the bug:
- Create a .cs-file and a class within it. There names have to be equal.
- Write a meaning less field or property.
- Trigger the action “Refactor.Rename” on the class name (right click “Quick Actions and Refactorings” or shortcut), tick the option “Rename smybol’s file” and press the “Apply”-button. The option should remain when renaming a symbol again!
- Now trigger the action “Refactor.Rename” but for this time on the field or property. The option “Rename symbol’s file” does not appear. Press the “Apply”-button.
- You now produce the bug by triggering the action “Refactor.Rename” again on the class name. The option “Rename smybol’s file” you just ticked before is now unticked.
Please fix this.
Original Comments
Feedback Bot on 6/29/2022, 06:58 PM:
(private comment, text removed)
Feedback Bot on 7/1/2022, 10:58 AM:
(private comment, text removed)
Original Solutions
Andrew Hall 🤘 [MSFT] solved on 7/1/2022, 00:18 PM, 0 votes:
A fix for this issue has been released! Install the most recent release from https://visualstudio.microsoft.com/downloads/. Thank you for providing valuable feedback which has helped improve the product.
You can track the fix merged with #61785
Sergio Fonseca on 8/3/2022, 11:09 AM:
(private comment, text removed)
Teroneko on 8/3/2022, 01:00 PM:
(private comment, text removed)