I think the issue lies in the incorrect definition of the compiler in VS Code. Try opening the settings by right-clicking on the notification and selecting "Edit includePath settings". In the window that opens, specify the path to the compiler and its type.