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

    The variable resolver service should be used to resolve variables in strings.

    Index

    Constructors

    Properties

    variableRegistry: VariableRegistry
    VAR_REGEXP: RegExp = ...

    Methods

    • Resolve the variables for all strings found in the object and nested objects.

      Type Parameters

      • T

      Parameters

      Returns Promise<undefined | T>

      Promise to object with variables resolved. Returns undefined if a variable resolution was cancelled.

    • Resolve the variables in the given string array.

      Parameters

      • value: string[]

        The array of data to resolve variables in.

      • options: VariableResolveOptions = {}

        Options of the variable resolution.

      Returns Promise<undefined | string[]>

      Promise to array with variables resolved. Never rejects.

      since 1.28.0 use resolve instead.