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

Function mergedDiagnostics

packages/opencode/src/lsp/client.ts:145–146  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

143 const registrationListeners = new Set<() => void>()
144 const diagnosticListeners = new Set<(input: { path: string; serverID: string }) => void>()
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 })

Callers 1

diagnosticsFunction · 0.85

Calls 2

dedupeDiagnosticsFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected