From 3d111910c74aea983c6343bd145cec0e8db7126a Mon Sep 17 00:00:00 2001 From: LasaleFamine Date: Sat, 21 Apr 2018 18:16:16 +0200 Subject: [PATCH] fix(update-icons): added command for update icons --- extensions/helpers/vscode.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extensions/helpers/vscode.ts b/extensions/helpers/vscode.ts index 8ae4cc7..2f38245 100644 --- a/extensions/helpers/vscode.ts +++ b/extensions/helpers/vscode.ts @@ -33,6 +33,15 @@ export function getCurrentThemeIconsID(): string { return vscode.workspace.getConfiguration().get('workbench.iconTheme'); } +/** + * Set a specific id for icons + * @export + * @returns {Thenable} + */ +export function setIconsID(id: string): Thenable { + return vscode.workspace.getConfiguration().update('workbench.iconTheme', id, true); +} + /** * Reloads current vscode window. * @export