Langium - v4.0.0
    Preparing search index...

    Interface ConfigurationProvider

    interface ConfigurationProvider {
        ready: Promise<void>;
        getConfiguration(language: string, configuration: string): Promise<any>;
        initialize(params: InitializeParams): void;
        initialized(params: ConfigurationInitializedParams): Promise<void>;
        onConfigurationSectionUpdate(
            callback: ConfigurationSectionUpdateListener,
        ): Disposable;
        updateConfiguration(change: DidChangeConfigurationParams): void;
    }

    Implemented by

    Index

    Properties

    ready: Promise<void>

    A promise that resolves when the configuration provider is ready to be used.

    Methods

    • Returns a configuration value stored for the given language.

      Parameters

      • language: string

        The language id

      • configuration: string

        Configuration name

      Returns Promise<any>

    • When used in a language server context, this method is called when the server receives the initialize request.

      Parameters

      • params: InitializeParams

      Returns void

    • Updates the cached configurations using the change notification parameters.

      Parameters

      • change: DidChangeConfigurationParams

        The parameters of a change configuration notification. settings property of the change object could be expressed as Record<string, Record<string, any>>

      Returns void