Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProvidedTaskConfigurations

Hierarchy

  • ProvidedTaskConfigurations

Index

Constructors

Properties

activatedProvidersTypes: string[] = []
currentToken: number = 0
nextToken: number = 1
taskDefinitionRegistry: TaskDefinitionRegistry
taskProviderRegistry: TaskProviderRegistry
tasksMap: Map<string, Map<string, Map<undefined | string, TaskConfiguration>>> = ...

Map of source (name of extension, or path of root folder that the task config comes from) and task config map. For the second level of inner map, the key is task label. For the third level of inner map, the key is the task scope and value TaskConfiguration.

Methods

  • activateProviders(taskType?: string): Promise<void>
  • Finds the detected task for the given task customization. The detected task is considered as a "match" to the task customization if it has all the required properties. In case that more than one customization is found, return the one that has the biggest number of matched properties.

    Parameters

    Returns Promise<undefined | TaskConfiguration>

    the detected task for the given task customization. If the task customization is not found, undefined is returned.

  • isTaskProviderActivationNeeded(taskType?: string): boolean
  • pushActivatedProvidersType(taskType: string): void
  • refreshTasks(token: number, taskType?: string): Promise<void>
  • startUserAction(): number
  • updateUserAction(token: number): void