bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Run process in background #60

Closed johannes-z closed 4 years ago

johannes-z commented 7 years ago

Can we run the process in the background, so sublime doesn't freeze? Might require a notification in the status bar though, so the user knows what's happening.

bcomnes commented 7 years ago

We might be able to do this for the format command itself, but I think in order to handle the pre-save hook, it has to be synchronous. It became more noticeable when switching to the new --fix flag which runs quite a bit slower than the previous formatting command. It was a decision I made a long time ago, so I don't totally remember the justification behind it.

bcomnes commented 4 years ago

Open to a PR here. Closing until someone wants to work on it.