added change theme feature

This commit is contained in:
sophiadrewfs 2021-10-19 12:32:26 -05:00
parent b0e9e71cb7
commit feb2a1b636
3 changed files with 19 additions and 2 deletions

View File

@ -2,6 +2,7 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846 // See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format // for the documentation about the extensions.json format
"recommendations": [ "recommendations": [
"dbaeumer.vscode-eslint" "dbaeumer.vscode-eslint",
"theme.dracula"
] ]
} }

View File

@ -42,6 +42,10 @@
{ {
"command": "mind-reader.resetEditorScale", "command": "mind-reader.resetEditorScale",
"title": "Reset Editor Scale" "title": "Reset Editor Scale"
},
{
"command": "mind-reader.selectTheme",
"title": "Select Theme"
} }
], ],
@ -83,7 +87,12 @@
"command": "mind-reader.resetEditorScale", "command": "mind-reader.resetEditorScale",
"group": "mind-reader", "group": "mind-reader",
"when": "activeEditor" "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'); 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() {} export function deactivate() {}