Mind_Reader/src/extension.ts
sophiadrewfs 0104e75d2c
added change theme feature (#3)
Add theme extension recommendation and open theme commands.
2021-10-19 12:46:05 -05:00

58 lines
1.7 KiB
TypeScript

import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
console.log('Congratulations, your extension "mind-reader" is now active!');
vscode.window.showInformationMessage('Mind_Reader is loaded!');
// Increase Font Scale
context.subscriptions.push(
vscode.commands.registerCommand('mind-reader.increaseFontScale', () => {
vscode.commands.executeCommand('editor.action.fontZoomIn');
})
);
// Decrease Font Scale
context.subscriptions.push(
vscode.commands.registerCommand('mind-reader.decreaseFontScale', () => {
vscode.commands.executeCommand('editor.action.fontZoomOut');
})
);
// Reset Font Scale
context.subscriptions.push(
vscode.commands.registerCommand('mind-reader.resetFontScale', () => {
vscode.commands.executeCommand('editor.action.fontZoomReset');
})
);
// Increase Editor Scale
context.subscriptions.push(
vscode.commands.registerCommand('mind-reader.increaseEditorScale', () => {
vscode.commands.executeCommand('workbench.action.zoomIn');
})
);
// Decrease Editor Scale
context.subscriptions.push(
vscode.commands.registerCommand('mind-reader.decreaseEditorScale', () => {
vscode.commands.executeCommand('workbench.action.zoomOut');
})
);
// Reset Editor Scale
context.subscriptions.push(
vscode.commands.registerCommand('mind-reader.resetEditorScale', () => {
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() {}