After enabling wayland on VS Code by passing flags in code.desktop file, Window decorations aren’t matching the system theme.
Have you installed the Gnome-Tweaks and checked under “Appearance” ?
There you can change the “Legacy Applications” to the dark theme you are using.