added change theme feature (#3)

Add theme extension recommendation and open theme commands.
This commit is contained in:
sophiadrewfs 2021-10-19 12:46:05 -05:00 committed by GitHub
parent b0e9e71cb7
commit 0104e75d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -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"
}
]
},

View File

@ -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() {}