From 0104e75d2cfbdd6189f17da9254ff6ebd9712dfa Mon Sep 17 00:00:00 2001 From: sophiadrewfs <49346118+sophiadrewfs@users.noreply.github.com> Date: Tue, 19 Oct 2021 12:46:05 -0500 Subject: [PATCH] added change theme feature (#3) Add theme extension recommendation and open theme commands. --- package.json | 11 ++++++++++- src/extension.ts | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a46068f..da3ebe2 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,10 @@ { "command": "mind-reader.resetEditorScale", "title": "Reset Editor Scale" + }, + { + "command": "mind-reader.selectTheme", + "title": "Select Theme" } ], @@ -83,7 +87,12 @@ "command": "mind-reader.resetEditorScale", "group": "mind-reader", "when": "activeEditor" - } + }, + { + "command": "mind-reader.selectTheme", + "group": "mind-reader", + "when": "activeEditor" + } ] }, diff --git a/src/extension.ts b/src/extension.ts index 1d5a9c8..c8f6e4b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -45,6 +45,13 @@ export function activate(context: vscode.ExtensionContext) { vscode.commands.executeCommand('workbench.action.zoomReset'); }) ); + + // Select Theme + context.subscriptions.push( + vscode.commands.registerCommand('mind-reader.selectTheme', () => { + vscode.commands.executeCommand('workbench.action.selectTheme'); + }) + ); } export function deactivate() {}