Open vsfeedback opened 2 years ago
This issue has been moved from a ticket on Developer Community.
hello again :)
I've been developing a few related methods and had them all in one static class file, but then I wanted to refactor them out into their own files.
I had previously done this for a common method so there already existed a file with the standard name given by vs. In this case LayoutHelpers.cs
Anyway this had slipped my mind and in the previous (non preview version) I was used to VS behaving itself and checking if the file already existed.
I have come to rely on this magical refactoring tool and have not had issues before.
Anyway this time the original contents of the file were overwritten.
Hoping to be helpful I have recreated my steps and recorded the issue.
All the best
rob
(private comment, text removed)
(no solutions)
short explanation: if the file name for the new type already exists, it overwrites the file instead of finding a unique name.
This issue has been moved from a ticket on Developer Community.
hello again :)
I've been developing a few related methods and had them all in one static class file, but then I wanted to refactor them out into their own files.
I had previously done this for a common method so there already existed a file with the standard name given by vs. In this case LayoutHelpers.cs
Anyway this had slipped my mind and in the previous (non preview version) I was used to VS behaving itself and checking if the file already existed.
I have come to rely on this magical refactoring tool and have not had issues before.
Anyway this time the original contents of the file were overwritten.
Hoping to be helpful I have recreated my steps and recorded the issue.
All the best
rob
Original Comments
Feedback Bot on 5/22/2022, 07:39 PM:
(private comment, text removed)
Feedback Bot on 5/23/2022, 00:23 PM:
(private comment, text removed)
Original Solutions
(no solutions)