Protected
clientProtected
Readonly
providedPrivate
rawMap of source (path of root folder that the task configs come from) and raw task configurations / customizations.
This map is used to store the data from tasks.json
files in workspace.
Protected
Readonly
taskProtected
taskMap of source (path of root folder that the task configs come from) and task customizations map.
Protected
Readonly
taskProtected
Readonly
taskProtected
Readonly
taskProtected
tasksMap 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
Readonly
toProtected
Readonly
workspaceAdds given task to a config file and opens the file to provide ability to edit task configuration.
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.
Private
getOptional
scope: TaskConfigurationScopePrivate
getreturns the task configuration for a given label or undefined if none
Private
getPrivate
getReturns the task customizations by type from a given root folder in the workspace.
the type of task customizations
Private
getreturns a collection of known tasks, which includes:
tasks.json
, andThe invalid task configs are not returned.
Private
getProtected
initPrivate
ischecks if the config is a detected / contributed task
Private
isReturns true
if the given task configuration is valid as per the task schema defined in Theia
or contributed by Theia extensions and plugins, false
otherwise.
Protected
onCalled when a change, to a config file we watch, is detected.
Protected
readparses a config file and extracts the tasks launch configurations
Protected
refreshRead the task configs from the task configuration manager, and updates the list of available tasks.
Private
removeRemoves task customization objects found in the given task config file from the memory. Please note: this function does not modify the task config file.
Private
removeremoves tasks configured in the given task config file
Protected
reorganizeWrites the task to a config file. Creates a config file if this one does not exist
Updates the task config in the tasks.json
.
The task config, together with updates, will be written into the tasks.json
if it is not found in the file.
task that the updates will be applied to
the updates to be applied
Watches a tasks.json configuration file and provides a parsed version of the contained task configurations