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 { enum Commands {
ACCENTS, ACCENTS,
CHANGELOG,
COLOUR_VARIANT COLOUR_VARIANT
} }
const OPTIONS: IGenericObject<number> = { const OPTIONS: IGenericObject<number> = {
'Change accent color': Commands.ACCENTS, '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) { export function activate(context: vscode.ExtensionContext) {
@ -33,6 +35,9 @@ export function activate(context: vscode.ExtensionContext) {
case Commands.ACCENTS: case Commands.ACCENTS:
THEME_ACCENTS_SETTER(); THEME_ACCENTS_SETTER();
break; break;
case Commands.CHANGELOG:
showChangelog();
break;
case Commands.COLOUR_VARIANT: case Commands.COLOUR_VARIANT:
THEME_VARIANT(); THEME_VARIANT();
break; break;