Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail textDocument/formatting when no formatter is set (#108)
Currently, nil silently fails when no formatter is set. This caused me a lot of confusion as to why nothing was formatting when I accidentally misconfigured the formatter. This makes it so that we return an error instead, alerting the user that something is wrong. This could be annoying to someone who hasn't configured a formatter on purpose but still causes formatting events, either by format-on-save or muscle memory. I think this is fine, and they should turn off format-on-save or just get a formatter instead. Alternatively, someone could set `cat` as their formatter.
- Loading branch information