Visual studio code title bar and window decoration theme mismatch after passing wayland flags

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.