Skip to content

Commit 3c60bf0

Browse files
committed
feedback
1 parent 967ec28 commit 3c60bf0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/opencode/src/lsp/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { withTimeout } from "../util/timeout"
1313
import { Instance } from "../project/instance"
1414
import { Filesystem } from "../util/filesystem"
1515

16+
const DIAGNOSTICS_DEBOUNCE_MS = 150
17+
1618
export namespace LSPClient {
1719
const log = Log.create({ service: "lsp.client" })
1820

@@ -199,7 +201,7 @@ export namespace LSPClient {
199201
log.info("got diagnostics", { path: normalizedPath })
200202
unsub?.()
201203
resolve()
202-
}, 150)
204+
}, DIAGNOSTICS_DEBOUNCE_MS)
203205
}
204206
})
205207
}),

0 commit comments

Comments
 (0)