VSCode - Can a task call another task?
You can make it depends on another task. Example:
{
"label": "secondTask",
"type": "shell",
"command": "<Your second task's command here>",
"dependsOn": [
"firstTask"
]
},
{
"label": "firstTask",
"type": "shell",
"command": "<Your first task's command here>"
}
Chaining tasks is possible. use "dependsOn": ['Build'] in task Deploy. source