The way I fixed this was:
-
Shutdown Unreal Engine
-
Shutdown Visual Studio Code
-
Delete the following folders in your project directory:
Binaries
DerivedDataCache
Intermediate -
Start up Unreal Engine with the project.
-
It will give you a message about needing to recompile binaries etc (this will take a long time and the computer will appear to be doing nothing).
-
Eventually the project will open in Unreal Engine
-
Build it.
After this process I was a back in action.