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

Function requestDocumentDiagnostics

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

Source from the content-addressed store, hash-verified

414 // merging in the background; do not sequence identifier-by-identifier, and do
415 // not add a post-match settle/debounce delay. See PR #23771.
416 async function requestDocumentDiagnostics(filePath: string) {
417 const state = documentPullState()
418 if (!state.supported) return { handled: false, matched: false }
419 return requestDiagnostics(
420 filePath,
421 [
422 requestDiagnosticReport(filePath),
423 ...state.documentIdentifiers.map((identifier) => requestDiagnosticReport(filePath, identifier)),
424 ],
425 (results) => hasCurrentFileDiagnostics(filePath, results),
426 )
427 }
428
429 async function requestFullDiagnostics(filePath: string) {
430 const documentState = documentPullState()

Callers 1

Calls 4

documentPullStateFunction · 0.85
requestDiagnosticsFunction · 0.85
requestDiagnosticReportFunction · 0.85

Tested by

no test coverage detected