-
Notifications
You must be signed in to change notification settings - Fork 47
/
extension.ts
28 lines (21 loc) · 847 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
25
26
27
28
import * as vscode from "vscode";
import { registerAiModule } from "./ai";
import { api } from "./api";
import { registerCreationModule } from "./creation";
import { registerLiveShareModule } from "./liveShare";
import { registerPreviewModule } from "./preview";
import { registerTreeViewModule } from "./preview/tree";
import { store } from "./store";
import { checkForSwingWorkspace } from "./utils";
export async function activate(context: vscode.ExtensionContext) {
store.globalStorageUri = context.globalStorageUri;
const syncKeys: string[] = [];
registerAiModule(context);
registerCreationModule(context, api, syncKeys);
registerPreviewModule(context, api, syncKeys);
context.globalState.setKeysForSync(syncKeys);
registerTreeViewModule(context);
registerLiveShareModule();
checkForSwingWorkspace();
return api;
}