ProtectedclientProtected ReadonlyprovidedProtected ReadonlytaskProtectedtaskMap of source (path of root folder that the task configs come from) and task customizations map.
Protected ReadonlytaskProtected ReadonlytaskProtectedtasksMap of source (path of root folder that the task configs come from) and task config map. For the inner map (i.e., task config map), the key is task label and value TaskConfiguration
Protected ReadonlytaskProtected ReadonlytoProtected ReadonlyworkspaceAdds given task to a config file and opens the file to provide ability to edit task configuration.
Dispose this object.
Returns the customization object in tasks.json for the given task. Please note, this function
returns undefined if the given task is not a detected task, because configured tasks don't need
customization objects - users can modify its config directly in tasks.json.
The task config, which could either be a configured task or a detected task.
returns the customized task for a given label or undefined if none
returns a collection of invalid task configs as per the task schema defined in Theia.
Optionalscope: TaskConfigurationScopereturns the task configuration for a given label or undefined if none
returns the list of known task labels
returns a collection of known tasks, which includes:
tasks.json, andThe invalid task configs are not returned.
ProtectedinitProtectedonCalled when a change, to a config file we watch, is detected.
Protectedreadparses a config file and extracts the tasks launch configurations
ProtectedrefreshRead the task configs from the task configuration manager, and updates the list of available tasks.
ProtectedreorganizeThis function is called after a change in TaskDefinitionRegistry happens.
It checks all tasks that have been loaded, and re-organized them in tasksMap and taskCustomizationMap.
Writes the task to a config file. Creates a config file if this one does not exist
eslint-disable-next-line @typescript-eslint/no-explicit-any
Watches a tasks.json configuration file and provides a parsed version of the contained task configurations