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.
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.
Description
In fantomas (version 2.9.2.0, the latest one on VS Code), the flag noSpaceBeforeColon is enabled by default.
In fantomas-fmt on VS Code on Windows, the flag "enable space before colon" is enabled by default.
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.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.