feat: Adds "show changelog" command.

This commit is contained in:
octod 2017-09-11 23:00:11 +02:00
parent 7f1bacbba5
commit 038ded7df1

View file

@ -7,12 +7,14 @@ import { shouldShowChangelog, showChangelog } from './helpers/changelog';
enum Commands {
ACCENTS,
CHANGELOG,
COLOUR_VARIANT
}
const OPTIONS: IGenericObject<number> = {
'Change accent color': Commands.ACCENTS,
'Change color variant': Commands.COLOUR_VARIANT
'Change color variant': Commands.COLOUR_VARIANT,
'Read the changelog': Commands.CHANGELOG
}
export function activate(context: vscode.ExtensionContext) {
@ -33,6 +35,9 @@ export function activate(context: vscode.ExtensionContext) {
case Commands.ACCENTS:
THEME_ACCENTS_SETTER();
break;
case Commands.CHANGELOG:
showChangelog();
break;
case Commands.COLOUR_VARIANT:
THEME_VARIANT();
break;