Variable can be used inside of strings using ${variableName} syntax.

interface Variable {
    description?: string;
    name: string;
    resolve(context?, argument?, configurationSection?, commandIdVariables?, configuration?): any;
}

Properties

Methods

Properties

description?: string

A human-readable description of this variable.

name: string

A unique name of this variable.

Methods

  • Resolve to a string value of this variable or undefined if variable cannot be resolved. Never reject.

    Parameters

    • Optional context: URI
    • Optional argument: string
    • Optional configurationSection: string
    • Optional commandIdVariables: CommandIdVariables
    • Optional configuration: unknown

    Returns any