BetterThanTomorrow / calva

Clojure & ClojureScript Interactive Programming for VS Code
https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva
Other
1.62k stars 213 forks source link

Run Babashka on file save *.bb #1366

Open cswaroop opened 2 years ago

cswaroop commented 2 years ago

Babashka/ (nbb aswell) with superb low startup time is used to develop scripts and the typical workflow is to run bb -f ${file} on every file save or ondemand by running a command from command-palette. It would be nice Calva supports this natively on *.bb files. I am doing it through a "run-it-on" vscode plugin with the following configuration in settings.json

"runItOn": { "commands": [ { "match": "\.bb$", "cmd": "bb -f ${file}" } ], "watchers": [ { "match": "*/.bb", "cmd": "bb -f ${file}" } ] } Hope to see Calva supporting non-REPL workflows typical of Babashka usage.

bpringe commented 2 years ago

That's a neat idea. Thanks for providing that method you currently use. @PEZ Thoughts on this?