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

Function updatePushDiagnostics

packages/opencode/src/lsp/client.ts:147–150  ·  view source on GitHub ↗
(filePath: string, next: Diagnostic[])

Source from the content-addressed store, hash-verified

145 const mergedDiagnostics = (filePath: string) =>
146 dedupeDiagnostics([...(pushDiagnostics.get(filePath) ?? []), ...(pullDiagnostics.get(filePath) ?? [])])
147 const updatePushDiagnostics = (filePath: string, next: Diagnostic[]) => {
148 pushDiagnostics.set(filePath, next)
149 for (const listener of diagnosticListeners) listener({ path: filePath, serverID: input.serverID })
150 }
151 const updatePullDiagnostics = (filePath: string, next: Diagnostic[]) => {
152 pullDiagnostics.set(filePath, next)
153 }

Callers 1

createFunction · 0.85

Calls 2

listenerFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected