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

    Frontend registry of provider-level model-discovery status.

    Provider frontend contributions push their state here as they fetch models; the AI configuration UI observes onDidChange to render fetching/error/no-credentials state. This is the provider-level counterpart to the per-model LanguageModelStatus.

    Index

    Constructors

    Properties

    descriptors: Map<string, ModelDiscoveryProviderDescriptor> = ...
    logger: ILogger
    onDidChange: Event<ModelDiscoveryStatus> = ...

    Fired whenever a provider's status changes; the argument is the new status.

    onDidChangeEmitter: Emitter<ModelDiscoveryStatus> = ...
    statuses: Map<string, ModelDiscoveryStatus> = ...

    Methods

    • Reports a failed discovery run. Any step of a run can fail, including the ones that only talk to the backend, and nothing awaits the promise a rejection would travel on: a provider's startup does not, and a refresh button cannot act on it. What the previous state offered is cleared, so a failure does not keep reading like the state before it (a badge, a sign-in button).

      Parameters

      • providerId: string
      • error: unknown

      Returns void