Skip to content

Commit c939ddb

Browse files
authored
Merge pull request #7812 from microsoft/tasks-instancelimit
Add instanceLimit option
2 parents 645f39d + ef20708 commit c939ddb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/editor/tasks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ You can specify a task's run behaviors using the `runOptions` property:
376376
* **runOn**: Specifies when a task is run.
377377
* `default` - The task will only be run when executed through the **Run Task** command.
378378
* `folderOpen` - The task will be run when the containing folder is opened. The first time you open a folder that contains a task with `folderOpen`, you will be asked if you want to allow tasks to run automatically in that folder. You can change your decision later using the **Manage Automatic Tasks** command and selecting between **Allow Automatic Tasks** and **Disallow Automatic Tasks**.
379+
* **instanceLimit** - The number of instances of the task that are allowed to run simultaneously. The default value is `1`.
379380

380381
## Customizing auto-detected tasks
381382

0 commit comments

Comments
 (0)