fix: Fixes an issues with the old settings "materialTheme.cache.workbench.accent".

This commit is contained in:
octod 2017-07-24 21:56:46 +02:00
parent 2dd98d0c4a
commit 6c2ce83be8
2 changed files with 9 additions and 0 deletions

View file

@ -15,6 +15,10 @@ const OPTIONS: IGenericObject<number> = {
} }
export function activate(context: vscode.ExtensionContext) { export function activate(context: vscode.ExtensionContext) {
if (vscode.workspace.getConfiguration().has('materialTheme.cache.workbench.accent')) {
vscode.workspace.getConfiguration().update('materialTheme.cache.workbench.accent', undefined, true);
}
// registering the command // registering the command
let command = vscode.commands.registerCommand('material.theme.config', () => { let command = vscode.commands.registerCommand('material.theme.config', () => {
// the user is going to choose what aspect of theme to config // the user is going to choose what aspect of theme to config

View file

@ -54,6 +54,11 @@
], ],
"configuration": { "configuration": {
"properties": { "properties": {
"materialTheme.cache.workbench.accent": {
"type": "string",
"title": "[DEPRECATED] This is an old property.",
"description": "This property is intended only for migrating old settings system to a new one. It will be removed in new versions. Don't use it, use \"materialTheme.cache.workbench.settings\" instead."
},
"materialTheme.cache.workbench.settings": { "materialTheme.cache.workbench.settings": {
"default": {}, "default": {},
"type": "object", "type": "object",