bw-hspc-contest-env/extension/bwcontest/src/extension.ts

30 lines
891 B
TypeScript
Raw Normal View History

2023-05-04 22:09:35 -04:00
import * as vscode from 'vscode';
2023-05-06 00:01:27 -04:00
import { BWPanel } from './BWPanel';
import { SidebarProvider } from './SidebarProvider';
import { notDeepEqual } from 'assert';
2023-05-04 22:09:35 -04:00
export function activate(context: vscode.ExtensionContext) {
2023-05-06 00:01:27 -04:00
const sidebarProvider = new SidebarProvider(context.extensionUri);
context.subscriptions.push(
vscode.window.registerWebviewViewProvider('bwcontest-sidebar', sidebarProvider)
);
2023-05-04 22:09:35 -04:00
2023-05-06 00:01:27 -04:00
context.subscriptions.push(
vscode.commands.registerCommand('bwcontest.helloWorld', () => {
})
);
2023-05-04 22:09:35 -04:00
2023-05-06 00:01:27 -04:00
context.subscriptions.push(
vscode.commands.registerCommand('bwcontest.askQuestion', async () => {
const answer = await vscode.window.showInformationMessage('How was your day?', 'good', 'bad');
if (answer === 'bad') {
vscode.window.showInformationMessage('Sorry to hear that');
} else {
console.log(answer);
}
})
);
2023-05-04 22:09:35 -04:00
}
export function deactivate() {}