Theia API Documentation v1.77.0
    Preparing search index...

    Implements

    Index
    cachedEntries: ResolvedRegistryEntry[] | undefined
    cachedPlugins: ResolvedPluginEntry[] | undefined
    cachedResponse: RegistryResponse | undefined
    cachedSkills: ResolvedSkillEntry[] | undefined
    lastFailure: { error: unknown; timestamp: number } | undefined

    The last failure and when it happened, used to back off from a registry that is unreachable.

    onDidChange: Event<void> = ...

    Fires whenever the cached set of resolved entries changes (initial load, manual refresh).

    onDidChangeEmitter: Emitter<void> = ...
    pendingResponse: Promise<RegistryResponse> | undefined

    Shared while a request is in flight so concurrent callers issue a single request.

    requestService: RequestService

    Use the backend request service rather than the generic (XHR-first) browser RequestService: the AI registry host does not send CORS headers, so a direct browser XHR is always blocked and logs an unsuppressable console error before falling back to the backend. Routing straight through the backend avoids that noise, matching how VSXRegistryService fetches.

    • Fetches and caches the raw registry response. One HTTP request backs the MCP, skill and plugin slices; the resolved slices are memoized separately and invalidated whenever the raw response is (re-)fetched.

      Parameters

      • forceRefresh: boolean

      Returns Promise<RegistryResponse>

    • Issues the request under a hard deadline. The timeout option is passed on to the transport, but the request travels through a JSON-RPC hop to the backend request service, so the deadline is enforced here as well. A request abandoned this way settles later and is then ignored.

      Parameters

      • url: string

      Returns Promise<RequestContext>