I'm writing vscode extension. I want to update vscode configuration (doesn't matter if it's global or workspace config) programmatically, not manually.
The manual way works fine:
- I press F1
- I find >Preferences: Open Settings (JSON)
- I go inside "workbench.colorCustomizations"
- I update "editor.lineHighlightBackground" to "#1073cf2d".
Can I do it programmatically?
I tried this:
vscode.workspace.getConfiguration("workbench.colorCustomizations")
.update("editor.lineHighlightBackground", "#5e0a69");
But does not work.