Is it possible to change nested settings using the VSCode Extensions API? I've searched around and there doesn't seem to be any discussion around this.
For example, how do I use getConfiguration().update() to change a setting like:
{
"workbench.colorCustomizations": {
"button.foreground": "#FFCC66", // <-- nested setting to change
// ...rest of nested settings
},
// rest of settings
}
How do I go about accessing "deep" properties such as the nested button.foreground property using dotted notation?
await vscode.workspace
.getConfiguration()
.update(
<nested-property>,
'#ffffff', // new button foreground color
vscode.ConfigurationTarget.Global
);