You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you git pull changes to files currently not opened in the editor and then run a codefix on project or solution level that will modify a file that was changed by the git pull, the codefix will undo the changes you’ve previously git pull’d.
In addition, if a file currently opened in the editor references members that are currently not open in the editor and were added in the latest git pull, those will have a red squiggly. The squiggly disappears if you open the file containing the added members.
In addition, even though the build worked fine, if you start debugging, halt at a breakpoint and then try to take a step, E&C will report errors due to changes you've supposedly made that cannot be applied.
To reproduce:
Download and extract attached Repro.zip
Navigate to the Checkout directory and open Repro.sln
Open Program.cs in the editor and perform a build
Open the git changes blade and click on pull
In Program.cs, bring up the light bulb menu on the second line where it says using System.IO;
Navigate to Remove Unnecessary Usings and in the preview pane, click on Fix all occurrences in: Project
Accept the proposed changes.
Review the changes made in the git changes blade, specifically OtherFile.cs.
The unnecessary usings were removed but the comment inside the OtherFile class, // these changes will be undone after applying the codefix, that was pulled in step 4, was removed as well.
Original Comments
Feedback Bot on 5/1/2024, 09:03 PM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] [regression] [worked-in:a few versions ago, maybe 17.8]
This is the same issue as https://developercommunity.visualstudio.com/t/Visual-Studio-operates-on-outdated-cache/10161097 again since the same problem has come back:
When you git pull changes to files currently not opened in the editor and then run a codefix on project or solution level that will modify a file that was changed by the git pull, the codefix will undo the changes you’ve previously git pull’d.
In addition, if a file currently opened in the editor references members that are currently not open in the editor and were added in the latest git pull, those will have a red squiggly. The squiggly disappears if you open the file containing the added members.
In addition, even though the build worked fine, if you start debugging, halt at a breakpoint and then try to take a step, E&C will report errors due to changes you've supposedly made that cannot be applied.
To reproduce:
Original Comments
Feedback Bot on 5/1/2024, 09:03 PM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: