-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fantomas integration #454
Fantomas integration #454
Conversation
OK. Thanks a lot for driving this forward. So the first step - to get access to the file source, AST and checker you need to implement functionality in In To get |
Thanks for the pointers, Kris. |
The full LSP specification is available here: https://microsoft.github.io/language-server-protocol/specification#textDocument_formatting |
Ok thanks, so
That is great as it is the same method Rider needs. I'm playing around with the idea to trim the public API of Fantomas down to the method we know that are in use by consumers. So maybe, just maybe we can drop https://github.com/nojaf/fantomas/blob/api-changes/src/Fantomas/CodeFormatter.fs#L37. |
Enable DocumentFormattingProvider
@Krzysztof-Cieslak I think this is ready now, currently, it doesn't contain any options for settings but we can always add that later. |
Continuation of the conversion in ionide/ionide-vscode-fsharp#274.
This is poor implementation meant to be improved over time (with the needed guidance of the maintainers). Please comment on everything little detail you see 😉.
First thing I noticed is that the latest beta of Fantomas is already on FCS 31. Currently somewhat waiting on #450.
Hopefully, this experiment will highlight if we need any changes to the Fantomas 3.0 API (See fsprojects/fantomas#454).
//cc: @Krzysztof-Cieslak @jindraivanek