Variables

read onlyonDidEndTask:Event<TaskEndEvent>

Fires when a task ends.

read onlyonDidEndTaskProcess:Event<TaskProcessEndEvent>

Fires when the underlying process has ended. This event will not fire for tasks that don't execute an underlying process.

read onlyonDidStartTask:Event<TaskStartEvent>

Fires when a task starts.

read onlyonDidStartTaskProcess:Event<TaskProcessStartEvent>

Fires when the underlying process has been started. This event will not fire for tasks that don't execute an underlying process.

read onlytaskExecutions:ReadOnlyArray<TaskExecution>

The currently active task executions or an empty array.

Methods

executeTask(task:Task):Thenable<TaskExecution>

Executes a task that is managed by the editor. The returned task execution can be used to terminate the task.

Parameters:

task

the task to execute

Throws:

When

running a ShellExecution or a ProcessExecution task in an environment where a new process cannot be started. In such an environment, only CustomExecution tasks can be run.

fetchTasks(?filter:TaskFilter):Thenable<Array<Task>>

Fetches all tasks available in the systems. This includes tasks from tasks.json files as well as tasks from task providers contributed through extensions.

Parameters:

filter

Optional filter to select tasks of a certain type or version.

registerTaskProvider<T>(type:String, provider:TaskProvider<T>):Disposable

Register a task provider.

@link Disposable} that unregisters this provider when being disposed.

Parameters:

type

The task kind type this provider is registered for.

provider

A task provider.

Returns:

A {