When VS Code opens project, the source code is in undefined synchronization state. If you are sure your code on VMS is the same as on PC, you may execute command Force synchronized status. This command operates only with project selected in Project explorer.