aaronpowell / vscode-profile-switcher

A VS Code extension for switching settings easily
https://marketplace.visualstudio.com/items?itemName=aaronpowell.vscode-profile-switcher&wt.mc_id=profileswitcher-github-aapowell
MIT License
177 stars 19 forks source link

modified updateUserSettings() to do a deep clone of settings.json #53

Open montanohanz opened 2 years ago

montanohanz commented 2 years ago

As it is, updateUserSettings() does not honor nested objects because of how Object.assign() works, only doing shallow copies of objects passed to it. By first turning the data into a string then back into JSON, objects like "workbench.colorCustomizations" should now be applied properly when selecting profiles.

This should fix issues #27 & #23