squiggle/packages/vscode-ext/src/extension.ts

18 lines
677 B
TypeScript
Raw Normal View History

// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from "vscode";
2022-06-20 14:38:45 +00:00
import { SquiggleEditorProvider } from "./editor";
import { registerPreviewCommand } from "./preview";
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(SquiggleEditorProvider.register(context));
2022-06-20 14:38:45 +00:00
registerPreviewCommand(context);
}
// this method is called when your extension is deactivated
export function deactivate() {}