Releases: fsprojects/fantomas
v5.2.0-alpha-008
5.2.0-alpha-008
Fixed
- else followed by //comment and then if has incorrect indention. #2449
- Multiple List concat operators are not seen as the same operator. #2472
- Multiline string inside lambda expression fails to format. #1299
- Can't format fragment of source code with #if element, and keyword, and triple-slash comment. #2360
- Wrong formatting applied to fragment of code with #if clause. #2361
- Comment in middle of pattern fail formatting. #1939
v5.2.0-alpha-007
5.2.0-alpha-007
Hi all,
In this release, a configuration change was added for multiline brackets.
# Old
## default:
fsharp_multiline_block_brackets_on_same_column = false
## align brackets
fsharp_multiline_block_brackets_on_same_column = true
## experimental stroustrup
fsharp_multiline_block_brackets_on_same_column = true
fsharp_experimental_stroustrup_style = true
# New
## default:
fsharp_multiline_bracket_style = cramped
## align brackets
fsharp_multiline_bracket_style = aligned
## experimental stroustrup
fsharp_multiline_bracket_style = experimental_stroustrup
Both the old and new configurations will be supported in 5.2.x
.
In 6.x
we will likely sunset the old configuration.
Fixed
Changed
- Update config to accept a single option for multiline_bracket_style. #2425
Special thanks to @josh-degraw!
v5.2.0-alpha-006
December 22nd Release
v5.2.0-alpha-005
v5.2.0-alpha-004
v5.2.0-alpha-003
5.2.0-alpha-003
Hi all,
In recent weeks we have finished the development of what we call "Project Dallas".
Project Dallas is a significant internal refactor aimed to make the code flow easier for newcomers.
The significant change is that we have constructed our own custom syntax tree (called an Oak
for now).
We can insert trivia into this new tree, allowing us to be way more flexible when printing the code.
You can read the contributor's documentation in the v5.2 branch.
We have ported a larger portion of the codebase and thus it was inevitable to stay fully compatible.
Overall almost nothing was deliberately changed. With the exception of some minor things here and there due to the code restructuring.
Some changes to be expected are:
- Update records (
{ x with ... }
) should respect the max record width setting. - Implicit constructors of type definitions were slightly altered when they are multiline.
- Infix operators and/or chained expressions.
Please try this version out on your code base! Now is the time to report any regressions that may have slipped in.
If you wait until we call it stable, we'll be looking forward to your pull requests 😏.
So please, try this out and talk to us if you see anything that is out of the ordinary.
Hit us on our Discord server or open an issue here on GitHub.
Many thanks in advance,
The Fantomas team
Fixed
- Attribute on ExplicitCtor is lost. #2638
- Comment above single parameter in brackets breaks code due to the wrong indentation. #2594
Special thanks to @dawedawe!
November 30th Release
5.1.4
Fixed
- Indenting problem with
match
workaround for single-line stroustrup expressions #2586
Special thanks to @Linschlager