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

    Backend implementation of the GitHub Copilot authentication service.

    All Copilot requests are served by the official Copilot CLI, which owns its credentials, so this service only drives the sign-in of the CLI and reports its state, see CopilotCliAuthProvider.

    Implements

    Index

    Constructors

    Properties

    cachedState: undefined | CopilotAuthState
    cliAuthProvider: CopilotCliAuthProvider
    client: undefined | CopilotAuthServiceClient
    cliLocator: CopilotCliLocator
    credentialStore: CopilotCredentialStore
    legacyCleanup: Promise<void>
    logger: ILogger
    migrationRequired: boolean = false
    onAuthStateChanged: Event<CopilotAuthState> = ...

    Event fired when authentication state changes.

    onAuthStateChangedEmitter: Emitter<CopilotAuthState> = ...

    Methods

    • Tells the backend where the Copilot CLI is, as configured by the user.

      The CLI is not shipped with the application and has to be found on the machine hosting the backend, which cannot read the preferences of the user itself.

      Parameters

      • path: undefined | string

        Location of the CLI executable, or undefined to search for it

      Returns Promise<void>