Co-authored-by: adamdotdevin <2363879+adamdottv@users.noreply.github.com> Co-authored-by: Jay V <air@live.ca> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: Andrew Joslin <andrew@ajoslin.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Tobias Walle <9933601+tobias-walle@users.noreply.github.com>
19 lines
477 B
TypeScript
19 lines
477 B
TypeScript
import { App } from "../app/app"
|
|
import { ConfigHooks } from "../config/hooks"
|
|
import { Format } from "../format"
|
|
import { LSP } from "../lsp"
|
|
import { Share } from "../share/share"
|
|
import { Snapshot } from "../snapshot"
|
|
|
|
export async function bootstrap<T>(input: App.Input, cb: (app: App.Info) => Promise<T>) {
|
|
return App.provide(input, async (app) => {
|
|
Share.init()
|
|
Format.init()
|
|
ConfigHooks.init()
|
|
LSP.init()
|
|
Snapshot.init()
|
|
|
|
return cb(app)
|
|
})
|
|
}
|