forked from PKief/vscode-markdown-checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.ts
24 lines (20 loc) · 890 Bytes
/
extension.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import * as vscode from 'vscode';
import { CheckboxStatus, CheckboxStatusController } from './checkboxStatus';
import { createCheckboxCommand } from './commands/createCheckbox';
import { markCheckboxCommand } from './commands/markCheckbox';
import { showQuickPickCommand } from './commands/quickPick';
export const activate = (context: vscode.ExtensionContext) => {
// item in the status bar to show checkbox information
const checkboxStatus = new CheckboxStatus();
const controller = new CheckboxStatusController(checkboxStatus);
// subscribe to changes to update the status bar
context.subscriptions.push(checkboxStatus);
context.subscriptions.push(controller);
context.subscriptions.push(
markCheckboxCommand,
createCheckboxCommand,
showQuickPickCommand
);
};
// this method is called when the extension is deactivated
export const deactivate = () => {};