mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 23:02:26 +00:00
24 lines
690 B
TypeScript
24 lines
690 B
TypeScript
import { Plugin } from "../plugin"
|
|
import { LSP } from "../lsp"
|
|
import { File } from "../file"
|
|
import { Project } from "./project"
|
|
import { Bus } from "../bus"
|
|
import { Command } from "../command"
|
|
import { Instance } from "./instance"
|
|
import { Log } from "@/util/log"
|
|
import { ShareNext } from "@/share/share-next"
|
|
|
|
export async function InstanceBootstrap() {
|
|
Log.Default.info("bootstrapping", { directory: Instance.directory })
|
|
await Plugin.init()
|
|
ShareNext.init()
|
|
await LSP.init()
|
|
File.init()
|
|
|
|
Bus.subscribe(Command.Event.Executed, async (payload) => {
|
|
if (payload.properties.name === Command.Default.INIT) {
|
|
Project.setInitialized(Instance.project.id)
|
|
}
|
|
})
|
|
}
|