-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Repeated document formatting adds unnecessary new lines #1505
Comments
Hey @not-rusty 👋, Thank you for opening an issue. We will get back to you as https://opencollective.com/ionide
|
Yes please, could you report an issue using https://fsprojects.github.io/fantomas-tools/#/fantomas/preview please? |
Closing as an upstream issue. |
Describe the bug**
Steps to reproduce
Have the following setup:
.editorconfig
Some random file,
App.fs
for example:And just Ctrl + Shift + I multiple times
Link to sample reproduction
I don't think it is necessary
Expected behaviour
To be formated like this:
However, it gets formated like this:
Which I really don't mind, but the issue is whenever I reformat again the document without changing anything, the format output adds new unnecessary lines:
After some testing I found out that just passing an array with a null inside instead of an empty array solves the issue, but I'd expect to work both ways as expected
Machine info
The text was updated successfully, but these errors were encountered: