team explorer, undo changes "are you sure" window doesn't show up

Riccardo Santorelli 0 Reputation points
2025-03-03T13:44:38.3433333+00:00

all of the changes that i make to a project show up in my team explorer, i can usually undo these by :

right click - undo
1st window pops up with all of the item and tickboxes and you can select which one to undo, once you have selected what to undo you can then press the: "undo changes" button and a 2nd window pop up as an are you sure window?
but this doesn't show up anymore, i can't select it by doing alt+tab as it doesn't show in the list of open windows and visual studio won't allow me to do anything else as it detect that this window is open (somewhere), so as a temporary solution i click anywhere on visual studio and press enter as the default button is the confirm, once all of the changes have been undone that window closes and the control returns to the main VS window, but ideally i would like this to show up like it did before;

does anyone know how?

thanks;

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,030 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dou Xu-MSFT 250 Reputation points Microsoft External Staff
    2025-03-04T03:36:34.8733333+00:00

    Hello @Riccardo Santorelli ,

    Welcome to Microsoft Q&A forum.

    I did a quick test in Visual Studio 2022(17.13.2) unfortunately, i could not reproduce this issue at my side and "Are you sure" window pops up well when clicking Undo. For this issue, i suggest you check the following to troubleshoot.

    A workaround: using command line

     git checkout — <filename> 
    

    1.Changing to a new file/branch/Repository and click "Undo Changes" to check if this issue specific to a file/branch/repo/project.

    2.Please check if you have installed any third-party extensions that may conflict with Team Explorer. Try to disable them via Extensions->Manage Extensions.

    3.Try to reset Visual Studio settings to their defaults if you have modified some settings.Go to Tools > Import and Export Settings->Choose Reset all settings.

    4.Go to other machine where the Team Explorer could work well and copy the Team Explorer folder, then paste to your machine and backup your original folder.

    C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation
    

    5.Repair your Visual Studio via VS Installer->Repair.

    6.If the issue persists, i would you update to the latest version.

    Best Regards,

    Dou


    If the answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentationto enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.