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

    Implements

    Index

    Constructors

    Properties

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

    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: undefined | Promise<RegistryResponse>

    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.

    Accessors

    Methods

    • 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>