Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions docs/reference/tasks-appendix.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ interface BaseTaskConfiguration {
* The type of a custom task. Tasks of type "shell" are executed
* inside a shell (e.g. bash, cmd, powershell, ...)
*/
type: "shell" | "process";
type?: "shell" | "process";

/**
* The command to be executed. Can be an external program or a shell
* command.
*/
command: string;
command?: string;

/**
* Specifies whether a global command is a background task.
Expand Down Expand Up @@ -136,13 +136,13 @@ interface TaskDescription {
* The type of a custom task. Tasks of type "shell" are executed
* inside a shell (e.g. bash, cmd, powershell, ...)
*/
type: "shell" | "process";
type?: "shell" | "process";

/**
* The command to execute. If the type is "shell" it should be the full
* command line including any additional arguments passed to the command.
*/
command: string;
command?: string;

/**
* Whether the executed command is kept alive and runs in the background.
Expand Down Expand Up @@ -319,12 +319,26 @@ interface BackgroundMatcher {
/**
* If matched in the output the start of a background task is signaled.
*/
beginsPattern?: string;
beginsPattern?: string | WatchingPattern;

/**
* If matched in the output the end of a background task is signaled.
*/
endsPattern?: string;
endsPattern?: string | WatchingPattern;
}

interface WatchingPattern {

/**
* The regular expression to detect the begin or end of a background task.
*/
regexp?: string;

/**
* The match group index of the filename. If provided, the expression
* is matched for that file only.
*/
file?: number;
}

interface ProblemPattern {
Expand Down