Two Tabs with same name occurs; one with previous coding?
11:48 07 Sep 2024

In the last month or so I've found that there are completely unpredictable times when the following will happen...

After a 'live' debugging session finishes (meaning a debugging round that took place while the app was running), I'll close the app and return to Visual Studio 2022 in order to continue coding. I'll look up at VS' file tabs and I'm surprised to see that there's suddenly two tabs that display the same file name. Even worse, one of the tab's window consists of code from an older version of that file (perhaps the version that was last saved in a previous programming session). Even worse than that, VS has automatically (unbeknownst to me) focused on the code in this mysterious (now obsolete) file.

If I haven't noticed that there are now two tabs with the same file name, I just continue typing; not knowing that I'm suddenly revising an old/obsolete file.

As you can perhaps imagine, the next day, when I open VS to continue to work on that Solution, I find that I've lost at least some of my changes from my previous session; in retrospect probably because at some point during the previous programming session I had unknowingly started revising the wrong older/obsolete version of the file.

Has anyone else experienced this? If so, I would sure appreciate some feedback because I'm losing whole chunks of programming revisions and time when this happens. And I can't imagine that the remedy I'm going to always have to live with is that I must check the VS tabs whenever I close a 'live' debugging round.

Again, this began, at most, a couple of months ago. In all my many years of using VS, I never experienced this prior to that. If it helps you to know this, my current version of VS 2022 is 17.10.3

visual-studio blazor-server-side