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
51 stars 14 forks source link

No delay option for the extension. #27

Closed NorkzYT closed 1 year ago

NorkzYT commented 2 years ago

Is there a way to make the extension have a delay after the file is saved, and also make the extension only run the command once and wait until the command is finished running?

E.g.

Vscode Auto-Save-File the file every 1 second. The Extension would have a configuration parameter stating that after some amount of seconds, the extension will run its command.

The extension will have another parameter that states, when the command is running, the extension will wait until it's finished and not queue or have any more attempts to run the command again until a certain amounts of seconds have passed and then the extension will check if a file is saved again.

pucelle commented 1 year ago

Not have a plan to do so, although plugin can do so.

I would suggest use timeout at the start of a command, like timeout 5 && do something else..., work on windows, guess other platforms should have equivalent commands.