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

Feature Request: Ability to provide arguments #26

Closed alexNecroJack closed 1 year ago

alexNecroJack commented 2 years ago

Consider this example:

  {
      "match": ".*\\.php$",
      "commandBeforeSaving": "replacerules.runRuleset",
      "args": {"rulesetName": "Clean PHP"}, //This is needed, for replacerules.runRuleset to work
      "async": false,
      "runIn": "vscode"
    }
r2d2meuleu commented 1 year ago

Hi, I'm sorry to not offer much help.

But I came here for the exact same scenario ; I confirm this would be useful.

pucelle commented 1 year ago

Will be released in v1.6.0, please check whether it works.