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

    AIActivationService is used to manage the activation state of AI features in Theia.

    interface AIActivationService {
        canRun: boolean;
        isActive: boolean;
        onDidChangeActiveStatus: Event<boolean>;
        onDidChangeCanRun: Event<boolean>;
    }

    Implemented by

    Index

    Properties

    canRun: boolean

    Whether AI features should actually be able to run (isActive + other conditions, e.g. workspace trust).

    isActive: boolean

    Whether AI features are enabled in preferences.

    onDidChangeActiveStatus: Event<boolean>

    Listen whether AI features are enabled in preferences.

    onDidChangeCanRun: Event<boolean>

    Listen whether AI features should actually be able to run (isActive + other conditions, e.g. workspace trust).