pucelle / vscode-run-on-save

Run configured shell commands when a file is saved in vscode, and output configured messages on status bar.
https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save
MIT License
50 stars 11 forks source link

[FER] An option to close or hide the terminal, or switch focus back after completing the command for runIn: "terminal" ? #23

Closed yw662 closed 1 year ago

yw662 commented 2 years ago

The current behavior for runIn: "terminal" would open a terminal in name 'Run on Save', and switch focus to that terminal. Could there be an option to hide the terminal after the command finished, maybe after a delay, and switch the focus back to the previous editor ?

There might be some cases where a user don't want it to be runIn: "backend", exp. to have an eye on build or test failures, but also don't want to keep the terminal showing up, or want to switch focus back, exp if build or test passed.

pucelle commented 2 years ago

Sounds reasonable, I will check at the APIs to see if I can achieve.

pucelle commented 1 year ago

Please try it, reopen if doesn't work.