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

Only runs the first command after updating to v1.9.1 #46

Closed Mode-77 closed 2 hours ago

Mode-77 commented 3 hours ago

Only clang-format gets run. Downgraded to v1.9.0 and both commands run.

"runOnSave.commands": [
      {
          "command":  "clang-format ${file}",
          "args":     "-i",
          "notMatch": "COMMIT_EDITMSG|settings.json|.clang-format|.gitignore|cspell.json|git-rebase-todo|(.+\\.vcxproj\\.filters)|(\\.gitconfig)|depend|(.*\\.bat)|(.*\\.sln)|(.*\\.txt)",
          "async":    false,
      },
      {
          "command":  "mpad ${file}",
          "args":     "-w",
          "notMatch": "COMMIT_EDITMSG|settings.json|.clang-format|.gitignore|cspell.json|git-rebase-todo|(.+\\.vcxproj\\.filters)|(\\.gitconfig)|depend|(.*\\.bat)|(.*\\.sln)|(.*\\.txt)",
          "async":    false,
      }
  ],
pucelle commented 3 hours ago

Let me check

pucelle commented 2 hours ago

Would you mind to use v1.9.1 and change option defaultRunIn to backend or terminal and try again to see if it works?

Mode-77 commented 2 hours ago

It works on backend and terminal, but not vscode.

pucelle commented 2 hours ago

Thanks. I have just released v1.9.2, and default value of defaultRunIn back to backend right now.