launch-json-generator README
The json generator for launch.json and taksk.json .
How to use
- Add item to
inputs field in launch.json or tasks.json like this. (more info for inputs ).
{
"id": "getConfigJson",
"type": "command",
"command": "launch-json-generator.generate",
// specify json scheme you want
"args": {
"stringValue": "string",
"optionalStringValue": "string|null",
"bool": "boolean",
"withOption": "'a'|'b'|'c'",
"nest": {
"array": ["boolean", "number", ]
}
},
}
- use variable
${input:<input-id>} in configurations or tasks items like this.
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\app.js",
"args": [
"--json-config=${input:getConfigJson}" // This!
]
}
| |