Code CleanUp - Remove unnecessary Using - removes usings from files not in loaded projects/solution #60867
Labels
Area-IDE
Bug
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
Milestone
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] [regression] [worked-in:17.1 Preview 1]
Hi,
In the Code Cleanup 'Remove unnecessary usings' removes needed imports(VB.Net) when doing a TFS-Diff of a File not in any loaded projects.
So if I use a new VS instance to check the changes from a merge, and have the new option 'Code Cleanup on Save' activated, then the Code CleanUp gets executed after resolving Conflicts, and sometimes removes needed Imports (VB.Net, keyword using in C#).
In Version '17.1 Preview 1' and earlier I used a extention to call 'Code Cleanup on Save' and this didn't happen at that time, it only started happening after installing '17.1 Preview 2' and activating the integrated 'Code Cleanup on Save'-Feature
Original Comments
Feedback Bot on 1/20/2022, 10:32 PM:
(private comment, text removed)
Feedback Bot on 1/21/2022, 09:48 AM:
(private comment, text removed)
Alexander Wurzinger on 3/10/2022, 02:46 AM:
(private comment, text removed)
Jose Mira on 3/11/2022, 08:27 AM:
(private comment, text removed)
Alexander Wurzinger on 3/11/2022, 09:49 AM:
(private comment, text removed)
Coffee on 3/27/2022, 11:02 PM:
(private comment, text removed)
Coffee on 4/11/2022, 05:45 AM:
(private comment, text removed)
Jorge Durán on 4/12/2022, 00:42 AM:
(private comment, text removed)
Coffee on 4/13/2022, 01:28 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: