vscode-action-buttons
vscode-action-buttons copied to clipboard
Adding Run and Debug buttons
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?
"actionButtons": {
"defaultColor": "white", // Can also use string color names.
"loadNpmCommands":false, // Disables automatic generation of actions for npm commands.
// "reloadButton":"↻", // Custom reload button text or icon (default ↻). null value enables automatic reload on configuration change
"commands": [
{
"name": "Run",
"color": "green",
"command": "workbench.action.debug.run"
},
{
"name": "Debug",
"color": "red",
"command": "workbench.action.debug.start"
}
]
},
This is the error that I get:
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?
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