From b2d424be7e982465c2e9486d937660c61686c194 Mon Sep 17 00:00:00 2001 From: Zaidhaan Date: Wed, 5 Jun 2024 02:32:30 +0800 Subject: [PATCH] task providers: when clause: copy edit --- api/extension-guides/task-provider.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/extension-guides/task-provider.md b/api/extension-guides/task-provider.md index cd1d8662c..6fbc18ac2 100644 --- a/api/extension-guides/task-provider.md +++ b/api/extension-guides/task-provider.md @@ -42,10 +42,10 @@ This contributes a task definition for `rake` tasks. The task definition has two ### 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. -- `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`. +- `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 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. ## Task provider