MCPcopy Create free account
hub / github.com/arctic-cli/interface / InstanceBootstrap

Function InstanceBootstrap

packages/arctic/src/project/bootstrap.ts:13–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import { Log } from "@/util/log"
12
13export async function InstanceBootstrap() {
14 Log.Default.info("bootstrapping", { directory: Instance.directory })
15 await Plugin.init()
16 Format.init()
17 await LSP.init()
18 FileWatcher.init()
19 File.init()
20 Vcs.init()
21
22 Bus.subscribe(Command.Event.Executed, async (payload) => {
23 if (payload.properties.name === Command.Default.INIT) {
24 await Project.setInitialized(Instance.project.id)
25 }
26 })
27}

Callers

nothing calls this directly

Calls 2

initMethod · 0.45
subscribeMethod · 0.45

Tested by

no test coverage detected