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

    Resolves the effective auto-update mode for a registry artifact and maintains the per-artifact override map.

    An artifact without an override follows the global default. Setting an artifact to the value that currently is the default removes its override rather than writing a redundant one, so the artifact keeps following the default if the user later changes it. An artifact therefore cannot be pinned to the current default value; that is intentional, and it is what lets the gear menu show whether a mode is inherited or explicitly set.

    interface RegistryAutoUpdatePolicy {
        clearMode(kind: RegistryArtifactKind, id: string): Promise<void>;
        getDefault(): AutoUpdateMode;
        getMode(kind: RegistryArtifactKind, id: undefined | string): AutoUpdateMode;
        hasExplicitDefault(): boolean;
        key(kind: RegistryArtifactKind, id: string): string;
        setDefault(mode: AutoUpdateMode): Promise<void>;
        setMode(
            kind: RegistryArtifactKind,
            id: string,
            mode: AutoUpdateMode,
        ): Promise<void>;
    }

    Implemented by

    Index

    Methods