Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

montanohanz
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant