TaskProvider

interface TaskProvider<T : Task>(source)

A task provider allows to add tasks to the task service. A task provider is registered via tasks.registerTaskProvider.

Online Documentation

Functions

Link copied to clipboard

Provides tasks.

Link copied to clipboard
abstract fun resolveTask(task: T, token: CancellationToken): ProviderResult<T>

Resolves a task that has no {@linkcode Task.execution execution} set. Tasks are often created from information found in the tasks.json-file. Such tasks miss the information on how to execute them and a task provider must fill in the missing information in the resolveTask-method. This method will not be called for tasks returned from the above provideTasks method since those tasks are always fully resolved. A valid default implementation for the resolveTask method is to return undefined.