Based on this site, I think the setting you're searching for is
window.autoDetectColorScheme
To activate it, follow these steps :
"window.autoDetectColorScheme": true,
"workbench.preferredLightColorTheme": "YourPreferredLightTheme", "workbench.preferredDarkColorTheme": "YourPreferredDarkTheme",