Merge branch 'develop' of github.com:equinusocio/vsc-material-theme into develop

This commit is contained in:
Mattia Astorino 2017-07-24 15:24:43 +02:00
commit f06e697a6d
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ import {IAccentCustomProperty} from '../../interfaces/iaccent-custom-property';
import { IDefaults } from "../../interfaces/idefaults";
import {IGenericObject} from '../../interfaces/igeneric-object';
import { updateAccent, isMaterialTheme, isMaterialThemeIcons } from "../../helpers/settings";
import { getCurrentThemeID, getCurrentThemeIconsID, askForWindowReload } from "../../helpers/vscode";
import { getCurrentThemeID, getCurrentThemeIconsID, reloadWindow } from "../../helpers/vscode";
import { THEME_ICONS } from "../theme-icons/index";
const REGEXP_HEX: RegExp = /^#([0-9A-F]{6}|[0-9A-F]{8})$/i;
@ -98,7 +98,7 @@ function setWorkbenchOptions(accentSelected: string | undefined, config: any): v
updateAccent(accentSelected);
if (isMaterialTheme(themeID) && isMaterialThemeIcons(themeIconsID)) {
THEME_ICONS().then(() => askForWindowReload());
THEME_ICONS().then(() => reloadWindow());
}
}, reason => {
vscode.window.showErrorMessage(reason);

View file

@ -48,7 +48,7 @@ export const THEME_ICONS = () => {
deferred.resolve();
});
} else {
deferred.reject();
deferred.resolve();
}
return promise;