Visual Studio not noticing changes in code

HI. I’ve been working on my game as usual, when suddenly VS just stopped noticing changes in my code. No matter what I do, typing some gibberish or deleting all of the code, the VS just launches editor without compiling anything.
Only after deleting Intermediate folder and Generating VS project files it compiles the code, but only once, so the next time I change it I have to go through this proces again.

I don’t know if I accidentaly turned off some option in VS or something.

I gave up and just upated project from UE 22 VS 2017 to UE 25 VS 2019. Still no idea what was causing it.