Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VariantManager

Hierarchy

  • VariantManager

Implements

  • Disposable

Index

Constructors

constructor

Properties

Private _activeVariantChanged

_activeVariantChanged: EventEmitter<void> = new vscode.EventEmitter<void>()

Private _variantFileWatcher

_variantFileWatcher: MultiWatcher = new MultiWatcher()

Watches for changes to the variants file on the filesystem

config

stateManager

stateManager: StateManager

The state manager for this instance

Accessors

activeVariantOptions

haveVariant

  • get haveVariant(): boolean

onActiveVariantChanged

  • get onActiveVariantChanged(): Event<void>

Methods

Private _reloadVariantsFile

  • _reloadVariantsFile(filepath?: undefined | string): Promise<void>
  • Parameters

    • Optional filepath: undefined | string

    Returns Promise<void>

dispose

  • dispose(): void

findDefaultChoiceCombination

  • findDefaultChoiceCombination(): Map<string, string>

initialize

  • initialize(): Promise<void>

Private loadVariantsFromSettings

mergeVariantConfigurations

publishActiveKeywordSettings

  • publishActiveKeywordSettings(keywordSettings: Map<string, string>): void
  • Parameters

    • keywordSettings: Map<string, string>

    Returns void

selectVariant

  • selectVariant(): Promise<boolean>

transformChoiceCombinationToKeywordSettings

  • transformChoiceCombinationToKeywordSettings(choiceCombination: object[]): Map<string, string>
  • Parameters

    • choiceCombination: object[]

    Returns Map<string, string>

variantConfigurationOptionsForKWs

  • variantConfigurationOptionsForKWs(keywordSetting: Map<string, string>): VariantOption[] | string

Object literals

Private _variants

_variants: object

The variants available for this project

settings

settings: never[] = []

Generated using TypeDoc