MCPcopy Index your code
hub / github.com/anomalyco/opencode / configurationValue

Function configurationValue

packages/opencode/src/lsp/client.ts:107–114  ·  view source on GitHub ↗
(settings: unknown, section?: string)

Source from the content-addressed store, hash-verified

105}
106
107function configurationValue(settings: unknown, section?: string) {
108 if (!section) return settings ?? null
109 const result = section.split(".").reduce<unknown>((acc, key) => {
110 if (!acc || typeof acc !== "object" || !(key in acc)) return undefined
111 return (acc as Record<string, unknown>)[key]
112 }, settings)
113 return result ?? null
114}
115
116// TypeScript's built-in LSP pushes diagnostics aggressively on first open.
117// We seed the push cache on the very first publish so waitForFreshPush can

Callers 1

createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected