-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename session randomly dismisses itself #74347
Comments
I'm also reproing this. Was doing a bunch of renames yesterday and about one in five would just randomly dismiss. |
I merged a potential fix to this problem, so I am going to close this issue. |
Still happens to me using version 17.12.3: The rename dialog just randomly disappears when starting to type. |
@grallbring The workaround that worked for me was to disable either in the Rename window or under Although I have not enabled it yet since then and I'm on 17.13 P2, I have never encountered this issue since then again. |
I also still have this issue on 17.12.3 and changing GitHub Copilot rename suggestions doesn't influence the problem for me. I think it has more to do with source generators (erroneously?) constantly re-running in the background (in my case the MVVM Community Toolkit ones), which constantly modifies/invalidates the Roslyn model, resulting in the rename to auto-dismiss. If you try to do a classic rename by just renaming the thing and then invoking the Rename action you get following error:
Also VS seems to massively memory leak at this point, for example right now growing to 15GB memory usage, but I'm 100% sure its related. |
@SirViver please file a vs issue from within vs. It will collect perf traces and memory dumps to let us see what is going on. |
I've now logged an issue from within VS, including a whole bunch of dumps/extra traces, plus a video recording showing the behavior: https://developercommunity.visualstudio.com/t/Rename-dialog-closes-itself-shortly-afte/10827608 |
Version Used: VS 17.11.0 P3
The issue first appeared either in this or the most recent previous preview release.
Steps to Reproduce:
Start a rename session and start typing new name.
It happens randomly, sometimes multiple times in a row, sometimes rarely.
See the second try:
Rogzites.2024-07-11.093008.mp4
(I have GitHub Copilot enabled as well, perhaps it is related to the newly introduced rename suggestions?)
Diagnostic Id:
N/A
Expected Behavior:
The rename session stays active while I type the new name and commit it.
Actual Behavior:
The rename session dismisses itself after typing the first character (or by itself?, I'm not sure what is the trigger).
The text was updated successfully, but these errors were encountered: