1- import { Plugin } from "../plugin"
21import { Format } from "../format"
32import { LSP } from "@/lsp/lsp"
43import { File } from "../file"
54import { Snapshot } from "../snapshot"
65import * as Project from "./project"
76import * as Vcs from "./vcs"
87import { Bus } from "../bus"
8+ import { Plugin } from "../plugin"
99import { InstanceState } from "@/effect/instance-state"
1010import { FileWatcher } from "@/file/watcher"
1111import { ShareNext } from "@/share/share-next"
@@ -22,12 +22,10 @@ export const layer = Layer.effect(
2222 // Yield each bootstrap dep at layer init so `run` itself has R = never.
2323 // InstanceStore imports only the lightweight tag from bootstrap-service.ts,
2424 // so it can depend on bootstrap without importing this implementation graph.
25- const config = yield * Config . Service
2625 const file = yield * File . Service
2726 const fileWatcher = yield * FileWatcher . Service
2827 const format = yield * Format . Service
2928 const lsp = yield * LSP . Service
30- const plugin = yield * Plugin . Service
3129 const project = yield * Project . Service
3230 const shareNext = yield * ShareNext . Service
3331 const snapshot = yield * Snapshot . Service
@@ -36,10 +34,6 @@ export const layer = Layer.effect(
3634 const run = Effect . gen ( function * ( ) {
3735 const ctx = yield * InstanceState . context
3836 yield * Effect . logInfo ( "bootstrapping" , { directory : ctx . directory } )
39- // everything depends on config so eager load it for nice traces
40- yield * config . get ( )
41- // Plugin can mutate config so it has to be initialized before anything else.
42- yield * plugin . init ( )
4337 // Each service self-manages its own slow work via Effect.forkScoped against
4438 // its per-instance state scope. We just await materialization here.
4539 yield * Effect . forEach (
0 commit comments