2022-06-16 21:37:20 +00:00
|
|
|
// 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-21 22:00:43 +00:00
|
|
|
import { startClient, stopClient } from "./client";
|
2022-06-16 21:37:20 +00:00
|
|
|
|
2022-06-20 14:38:45 +00:00
|
|
|
import { SquiggleEditorProvider } from "./editor";
|
2022-06-26 08:15:25 +00:00
|
|
|
import { registerSemanticHighlight } from "./highlight";
|
2022-06-20 14:38:45 +00:00
|
|
|
import { registerPreviewCommand } from "./preview";
|
2022-06-16 21:37:20 +00:00
|
|
|
|
|
|
|
// 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);
|
2022-06-21 22:00:43 +00:00
|
|
|
|
2022-06-26 08:15:25 +00:00
|
|
|
registerSemanticHighlight();
|
|
|
|
|
2022-06-21 22:00:43 +00:00
|
|
|
startClient(context);
|
2022-06-16 21:37:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// this method is called when your extension is deactivated
|
2022-06-21 22:00:43 +00:00
|
|
|
export function deactivate() {
|
|
|
|
stopClient();
|
|
|
|
}
|