Theia API Documentation v1.74.0
    Preparing search index...
    interface AiConfigurationChange {
        preferenceName?: string;
        affects(resourceUri?: string): boolean;
        affectsPreference(preferenceName: string): boolean;
    }
    Index

    Properties

    preferenceName?: string

    The preference key that changed. When the change is caused by a workspace-trust transition (which can change the effective value of any trust-gated key) this is undefined and affects returns true for every resource. Listeners tracking a specific key should re-query the value when preferenceName is undefined or equals their key.

    Methods

    • Tests whether the given preference key is affected by this change, treating a workspace-trust transition (where preferenceName is undefined) as affecting every trust-gated key. Prefer this over comparing preferenceName directly so listeners do not silently miss trust transitions.

      Parameters

      • preferenceName: string

        the preference key to test.

      Returns boolean