MCPcopy Create free account
hub / github.com/anomalyco/opencode / push

Function push

packages/opencode/src/lsp/client.ts:306–309  ·  view source on GitHub ↗
(target: string, items: Diagnostic[])

Source from the content-addressed store, hash-verified

304
305 const byFile = new Map<string, Diagnostic[]>()
306 const push = (target: string, items: Diagnostic[]) => {
307 const existing = byFile.get(target) ?? []
308 byFile.set(target, existing.concat(items))
309 }
310
311 let handled = false
312 let matched = false

Callers 1

requestDiagnosticReportFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected