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

Function hasCurrentFileDiagnostics

packages/opencode/src/lsp/client.ts:379–380  ·  view source on GitHub ↗
(filePath: string, results: DiagnosticRequestResult[])

Source from the content-addressed store, hash-verified

377 }
378
379 const hasCurrentFileDiagnostics = (filePath: string, results: DiagnosticRequestResult[]) =>
380 results.some((result) => (result.byFile.get(filePath)?.length ?? 0) > 0)
381
382 async function requestDiagnostics(
383 filePath: string,

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected