fix: preserve bus instance context (#28051)
This commit is contained in:
parent
ef96fdfd83
commit
7d85813a0f
1 changed files with 1 additions and 5 deletions
|
|
@ -13,8 +13,6 @@ import { InstanceState } from "@/effect/instance-state"
|
|||
import { containsPath } from "@/project/instance-context"
|
||||
import { NonNegativeInt } from "@opencode-ai/core/schema"
|
||||
import { RuntimeFlags } from "@/effect/runtime-flags"
|
||||
import { InstanceRef } from "@/effect/instance-ref"
|
||||
import { makeRuntime } from "@/effect/run-service"
|
||||
import { AppFileSystem } from "@opencode-ai/core/filesystem"
|
||||
|
||||
const log = Log.create({ service: "lsp" })
|
||||
|
|
@ -303,9 +301,7 @@ export const makeLayer = (supported: LSPServer.Info[]) =>
|
|||
if (!client) continue
|
||||
|
||||
result.push(client)
|
||||
void busRuntime.runPromise((bus) =>
|
||||
bus.publish(Event.Updated, {}).pipe(Effect.provideService(InstanceRef, ctx)),
|
||||
)
|
||||
await Bus.publish(ctx, Event.Updated, {})
|
||||
}
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue