I've released a first version of Fantomas.Client, this is the proposed solution for https://github.com/fsprojects/fantomas/issues/1844.
A first editor implementation was recently merged in FsAutocomplete.
The main idea is that you reference
Fantomas.Client and create a new
LSPFantomasService instance and use the API in FantomasService to handle formatting requests.
Each request will give you a FantomasResponse which contains a FantomasResponseCode. Based on that code, you will know how to process the response.
FantomasService will handle proxy each request to the right compatible version of
I've written a bit of documentation here, hopefully, that helps.
Let me know if you have any further questions.