Merge pull request #7341 from zaidhaan/feature/task-provider-copyedit
Task providers: Improve clarity in 'when clause' section
This commit is contained in:
Коммит
b66b813c13
|
@ -42,10 +42,10 @@ This contributes a task definition for `rake` tasks. The task definition has two
|
||||||
|
|
||||||
### When clause
|
### When clause
|
||||||
|
|
||||||
A task definition may optional have a `when` property. The `when` property specifies the condition under which task of this type will be available. The `when` property functions in the same way [as other places in VS Code](/api/references/when-clause-contexts), where there is a `when` property. The following contexts should always be considered when creating a task definition:
|
A task definition may optionally have a `when` property. The `when` property specifies the condition under which a task of this type will be available. The `when` property functions in the same way [as other places in VS Code](/api/references/when-clause-contexts), where there is a `when` property. The following contexts should always be considered when creating a task definition:
|
||||||
|
|
||||||
- `shellExecutionSupported`: True when VS Code can run `ShellExecution` tasks, such as VS Code is run as a desktop application or when using one of the remote extensions, such as Dev Containers.
|
- `shellExecutionSupported`: True when VS Code can run `ShellExecution` tasks, such as when VS Code is run as a desktop application or when using one of the remote extensions, such as Dev Containers.
|
||||||
- `processExecutionSupported`: True when VS Code can run `ProcessExecution` tasks, such as VS Code is run as a desktop application or when using one of the remote extensions, such as Dev Containers. Currently, it will always have the same value as `shellExecutionSupported`.
|
- `processExecutionSupported`: True when VS Code can run `ProcessExecution` tasks, such as when VS Code is run as a desktop application or when using one of the remote extensions, such as Dev Containers. Currently, it will always have the same value as `shellExecutionSupported`.
|
||||||
- `customExecutionSupported`: True when VS Code can run `CustomExecution`. This is always true.
|
- `customExecutionSupported`: True when VS Code can run `CustomExecution`. This is always true.
|
||||||
|
|
||||||
## Task provider
|
## Task provider
|
||||||
|
|
Загрузка…
Ссылка в новой задаче