This usually occurs while debugging and stepping through code. My first indication is when I can no longer hit F10 to step to the next line of code. Then I will notice after stopping the app I'm debugging, I can no longer edit my code, until I restart VS2022.