Visual Studio not noticing changes in code

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