feat: Adds "show changelog" command.
This commit is contained in:
parent
7f1bacbba5
commit
038ded7df1
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue