Open mbeps opened 3 years ago
came here to ask this as well. My use case is to run tasks same as I would with keybindings.json.
[
{
"key": "cmd+shift+0",
"command": "workbench.action.tasks.runTask",
"args": "Run Server"
}
]
The reason the default behavior does not work for me is I would like to be able to run multiple scripts in a split integrated terminal using a single command
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Server",
"dependsOn": [
"PositionHandler",
"Strategy Runner",
"Mock Exchange",
]
},
{
"type": "npm",
"script": "runner",
"path": "Communications/",
"label": "Strategy Runner",
"presentation": {
"reveal": "always",
"clear": false,
"focus": true,
"group": "runner"
}
},
{
"type": "npm",
"script": "mockExchange",
"path": "Communications/",
"label": "Mock Exchange",
"presentation": {
"reveal": "always",
"clear": false,
"focus": true,
"group": "runner"
}
},
{
"type": "npm",
"script": "positionHandler",
"path": "Communications/",
"label": "PositionHandler",
"presentation": {
"reveal": "always",
"focus": true,
"clear": false,
"group": "runner"
}
}
]
}
+1
A much needed feature
Currently, on VSCode the run and debug buttons are combined. This is inconvenient as if there are breakpoints present the program will enter debug mode. I have to rely on key binding which have separate commands for run (will ignore breakpoints) and debug. I tried to add these 2 commands in VSCode Action Buttons but I would get errors. Is there a way of making this work?
This is the error that I get:![image](https://user-images.githubusercontent.com/58662575/110473878-eea3c900-80d6-11eb-954b-e300d39663b4.png)
I would assume is that it can only run commands from terminal and not VSCode. If this is the case, how can I make it run commands from VSCode?