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

Function diagnostics

packages/opencode/src/lsp/client.ts:623–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

621 },
622 },
623 get diagnostics() {
624 const result = new Map<string, Diagnostic[]>()
625 for (const key of new Set([...pushDiagnostics.keys(), ...pullDiagnostics.keys()])) {
626 result.set(key, mergedDiagnostics(key))
627 }
628 return result
629 },
630 async waitForDiagnostics(request: { path: string; version: number; mode?: "document" | "full"; after?: number }) {
631 const normalizedPath = Filesystem.normalizePath(
632 path.isAbsolute(request.path) ? request.path : path.resolve(input.directory, request.path),

Callers 3

WriteToolFunction · 0.85
EditToolFunction · 0.85
renderFunction · 0.85

Calls 2

mergedDiagnosticsFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected