macros icon indicating copy to clipboard operation
macros copied to clipboard

how to make a command happen after command that takes input?

Open faceyspacey opened this issue 7 years ago • 2 comments

I would like to run workbench.action.git.push after workbench.action.git.input-commit is completed, but git push is called immediately after the commit input appears and before I fill it out and submit it.

Anyone have any ideas to solve this?

perhaps even just a way to delay the push command by 15 seconds.

faceyspacey avatar Mar 11 '17 20:03 faceyspacey

The ability to add a delay or wait would be really helpful.

adrum avatar May 16 '17 21:05 adrum

There is an open pull request with this functionality in it here, but the author hasn't merged it in yet. If you want to use this functionality now, you can copy the contents of this file into your local copy of this extension which should be at C:\Users\{YOUR_NAME}\.vscode\extensions\geddski.macros-1.2.0\extension.js.

Then just use the macro below.

"macros": {
  "CommitAndPush": [
    "workbench.action.git.input-commit",
    {"command": "$delay", "args": {"milliseconds": 15000}},
    "workbench.action.git.push"
  ]
}

osdavison avatar Aug 16 '17 15:08 osdavison