I have often made a commit, and then noticed that one of the files i was working on wasn't saved, and therefore were left out of the commit.
I have my current project set up with Husky, and have automated things like testing / linting before commit or push.
Here is the current Husky setup, just to give an idea of where a script could fit in.
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && ng lint",
"pre-push": "ng test --browsers ChromeHeadless --watch=false && testcafe -c 4 chrome:headless test"
}
}
Is there any way to make visual studio or Husky save all open files pre-commit?