paolodellepiane / vscode-fantomas-fmt

MIT License
17 stars 4 forks source link

Inconsistent configuration between fantomas and fantomas-fmt #15

Closed tqa236 closed 4 years ago

tqa236 commented 5 years ago

Description

In fantomas (version 2.9.2.0, the latest one on VS Code), the flag noSpaceBeforeColon is enabled by default.

fantomas --help
 --noSpaceBeforeColon: Disable spaces before colons (default = true).

In fantomas-fmt on VS Code on Windows, the flag "enable space before colon" is enabled by default.

image

I format the code on VS Code terminal, and it works incorrectly no matter if I turn on or turn off the fantomas-fmt flag above. However, if I use the --noSpaceBeforeColon flag in the command line, it works correctly.

fantomas .\TwoFer.fs # Wrong
fantomas .\TwoFer.fs --noSpaceBeforeColon # Right 

Repro code

In my test code here, fantomas-fmt gives me an extra space before every colon.

Also, some settings are changed in fantomas 3.0. Can you also update this plugin?

Thank you very much.