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

Function waitForDiagnostics

packages/opencode/src/lsp/client.ts:630–639  ·  view source on GitHub ↗
(request: { path: string; version: number; mode?: "document" | "full"; after?: number })

Source from the content-addressed store, hash-verified

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),
633 )
634 if (request.mode === "document") {
635 await waitForDocumentDiagnostics({ path: normalizedPath, version: request.version, after: request.after })
636 return
637 }
638 await waitForFullDiagnostics({ path: normalizedPath, version: request.version, after: request.after })
639 },
640 async shutdown() {
641 connection.end()
642 connection.dispose()

Callers

nothing calls this directly

Calls 2

waitForFullDiagnosticsFunction · 0.85

Tested by

no test coverage detected