Theia API Documentation v1.65.0
    Preparing search index...
    • Creates a preference proxy for typesafe preference handling.

      Type Parameters

      • T

      Parameters

      • preferences: PreferenceService

        the underlying preference service to use for preference handling.

      • promisedSchema: MaybePromise<IJSONSchema>

        the JSON Schema which describes which preferences are available including types and descriptions. Can be a promise.

      • Optionaloptions: PreferenceProxyOptions

        configuration options.

      Returns PreferenceProxy<T>

      the created preference proxy.

      1. Create JSON Schema specifying your preferences
      2. Create Configuration type based on the JSON Schema
      3. Bind the return value of createPreferenceProxy to make your preferences available wherever needed.

      See CorePreferences for an example.

      Note that if schema is a Promise, most actions will be no-ops until the promise is resolved.

      1.23.0 use PreferenceProxyFactory instead.