Task

constructor(taskDefinition: TaskDefinition, scope: JsAny, name: String, source: String, execution: JsAny = definedExternally, problemMatchers: JsAny = definedExternally)(source)

Creates a new task.

Parameters

taskDefinition

The task definition as defined in the taskDefinitions extension point.

scope

Specifies the task's scope. It is either a global or a workspace task or a task for a specific workspace folder. Global tasks are currently not supported.

name

The task's name. Is presented in the user interface.

source

The task's source (e.g. 'gulp', 'npm', ...). Is presented in the user interface.

execution

The process or shell execution.

problemMatchers

the names of problem matchers to use, like '

$tsc' or '$

eslint'. Problem matchers can be contributed by an extension using the problemMatchers extension point.

Online Documentation