Task

open class Task(source)

A task to execute

Online Documentation

Constructors

Link copied to clipboard
constructor(taskDefinition: TaskDefinition, scope: WorkspaceFolder, name: String, source: String, execution: ProcessExecution = definedExternally, problemMatchers: String = definedExternally)

Creates a new task.

constructor(taskDefinition: TaskDefinition, scope: TaskScope, name: String, source: String, execution: ProcessExecution = definedExternally, problemMatchers: String = definedExternally)
constructor(taskDefinition: TaskDefinition, scope: WorkspaceFolder, name: String, source: String, execution: ProcessExecution = definedExternally, problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>)
constructor(taskDefinition: TaskDefinition, scope: TaskScope, name: String, source: String, execution: ProcessExecution = definedExternally, problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>)
constructor(taskDefinition: TaskDefinition, scope: WorkspaceFolder, name: String, source: String, execution: ShellExecution, problemMatchers: String = definedExternally)
constructor(taskDefinition: TaskDefinition, scope: TaskScope, name: String, source: String, execution: ShellExecution, problemMatchers: String = definedExternally)
constructor(taskDefinition: TaskDefinition, scope: WorkspaceFolder, name: String, source: String, execution: ShellExecution, problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>)
constructor(taskDefinition: TaskDefinition, scope: TaskScope, name: String, source: String, execution: ShellExecution, problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>)
constructor(taskDefinition: TaskDefinition, scope: WorkspaceFolder, name: String, source: String, execution: CustomExecution, problemMatchers: String = definedExternally)
constructor(taskDefinition: TaskDefinition, scope: TaskScope, name: String, source: String, execution: CustomExecution, problemMatchers: String = definedExternally)
constructor(taskDefinition: TaskDefinition, scope: WorkspaceFolder, name: String, source: String, execution: CustomExecution, problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>)
constructor(taskDefinition: TaskDefinition, scope: TaskScope, name: String, source: String, execution: CustomExecution, problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>)

Properties

Link copied to clipboard

The task's definition.

Link copied to clipboard

A human-readable string which is rendered less prominently on a separate line in places where the task's name is displayed. Supports rendering of theme icons via the $(<name>)-syntax.

Link copied to clipboard
var execution: ERROR CLASS: Symbol not found for JsAny??

The task's execution engine

Link copied to clipboard

The task group this tasks belongs to. See TaskGroup for a predefined set of available groups. Defaults to undefined meaning that the task doesn't belong to any special group.

Link copied to clipboard

Whether the task is a background task or not.

Link copied to clipboard

The task's name

Link copied to clipboard

The presentation options. Defaults to an empty literal.

Link copied to clipboard
var problemMatchers: ReadonlyArray<ERROR CLASS: Symbol not found for JsString>

The problem matchers attached to the task. Defaults to an empty array.

Link copied to clipboard

Run options for the task

Link copied to clipboard
val scope: ERROR CLASS: Symbol not found for JsAny??

The task's scope.

Link copied to clipboard

A human-readable string describing the source of this shell task, e.g. 'gulp' or 'npm'. Supports rendering of theme icons via the $(<name>)-syntax.