mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 10:13:29 +00:00
fix(core): contain lsp warmup defects (#30226)
This commit is contained in:
parent
68676f2c5c
commit
d85f8cd4d8
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,8 @@ export const ReadTool = Tool.define(
|
|||
})
|
||||
|
||||
const warm = Effect.fn("ReadTool.warm")(function* (filepath: string) {
|
||||
yield* lsp.touchFile(filepath).pipe(Effect.ignore, Effect.forkIn(scope))
|
||||
// LSP warm-up is optional; do not let a background defect fail an otherwise successful read.
|
||||
yield* lsp.touchFile(filepath).pipe(Effect.ignoreCause, Effect.forkIn(scope))
|
||||
})
|
||||
|
||||
const readSample = Effect.fn("ReadTool.readSample")(function* (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue