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

Function documentPullState

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

Source from the content-addressed store, hash-verified

353 }
354
355 function documentPullState() {
356 const documentRegistrations = [...diagnosticRegistrations.values()].filter(
357 (registration) => registration.registerOptions?.workspaceDiagnostics !== true,
358 )
359 return {
360 documentIdentifiers: [
361 ...new Set(documentRegistrations.flatMap((registration) => registration.registerOptions?.identifier ?? [])),
362 ],
363 supported: hasStaticPullDiagnostics || documentRegistrations.length > 0,
364 }
365 }
366
367 function workspacePullState() {
368 const workspaceRegistrations = [...diagnosticRegistrations.values()].filter(

Callers 2

requestFullDiagnosticsFunction · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected