From 6c2ce83be8fefddcf81c664d251bfdd824d02ac0 Mon Sep 17 00:00:00 2001 From: octod Date: Mon, 24 Jul 2017 21:56:46 +0200 Subject: [PATCH] fix: Fixes an issues with the old settings "materialTheme.cache.workbench.accent". --- extensions/material.theme.config.ts | 4 ++++ package.json | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/extensions/material.theme.config.ts b/extensions/material.theme.config.ts index ddd7302..db511b3 100644 --- a/extensions/material.theme.config.ts +++ b/extensions/material.theme.config.ts @@ -15,6 +15,10 @@ const OPTIONS: IGenericObject = { } 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 let command = vscode.commands.registerCommand('material.theme.config', () => { // the user is going to choose what aspect of theme to config diff --git a/package.json b/package.json index f641967..1faa68e 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,11 @@ ], "configuration": { "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": { "default": {}, "type": "object",