forked from igrek8/dynamic-inputs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.json
36 lines (36 loc) · 940 Bytes
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"version": "2.0.0",
"tasks": [
{
"label": "myPreBuildTask",
"type": "shell",
"command": "echo",
"args": ["${input:myDynamicParameter}"],
"problemMatcher": []
}
],
"inputs": [
{
"id": "myDynamicParameter",
"type": "command",
// first try to read from the disk or select again
"command": "dynamic-inputs.read",
"args": {
"command": "bash",
// a script which prints JSON array to stdout as the last line
"args": ["${workspaceFolder}/populate.sh"],
// memoize the selection for the future
"var": "myDynamicParameter",
// map options to values
"unwrap": "$[*].value",
"serializer": "plain",
"quickPickOptions": {
"canPickMany": true,
"ignoreFocusOut": true,
"placeHolder": "Please select an option",
"title": "Parameter"
}
}
}
]
}