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

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>

  • 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