VSCode Command and ExtraCommands
fabltd opened this issue · 4 comments
fabltd commented
Hi
I have an issue with ExtraCommands.
I have a button that opens a vscode API command ( Its Platform IOs terminal) I then wish to pass a command to the terminal to start a script.
I can open the terminal but the ExtraCommand is never sent.
Thanks
JT
jkearins commented
Hi, could you please show "actionButtons" contents in settings.json?
fabltd commented
"actionButtons": {
"commands": [
{ "cwd" : "/Users/jt/Documents/GitHub/",
"name": "Prog",
"command" : "platformio-ide.newTerminal",
"extraCommands" : ["workbench.action.terminal.paste"],
"useVsCodeApi" : true
},
],
"defaultColor": "white",
"reloadButton": "↻",
"loadNpmCommands": false
}
jkearins commented
For useVsCodeApi=true try to use 'args' instead of 'extraCommands':
"commands": [
{ "cwd" : "/Users/jt/Documents/GitHub/",
"name": "Prog",
"command" : "platformio-ide.newTerminal",
"args" : ["workbench.action.terminal.paste"],
"useVsCodeApi" : true
},
],
jkearins commented
Please reopen if you still need help.