mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
added change theme feature
This commit is contained in:
parent
b0e9e71cb7
commit
feb2a1b636
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
11
package.json
11
package.json
@ -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"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -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() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user