Releases: fsprojects/fantomas
Releases · fsprojects/fantomas
April 3rd Release
8.0.0-alpha-009
Fixed
- Comment without code after it in the current scope should retain their "parent" indentation. #2286
- Code comment after expression is assigned to parenthesis. #1864
- Misaligned comment in MultiLineBlockBracket. #1716
- Comment unindented after DU cases. #2606
- Comment on last match case has wrong indentation. #2653
- Commented line inside of record should be indented at the same level as the fields #2482
- Unindentation of comment before end of computation expression. #2476
- Comments lost the indented after formatting. #2362
- Comments can be lost or shifted when at the end of expressions. #932
- Should not move the starting point of a single-line comment. #1233
Special thanks to @Copilot and @nojaf!
March 25th Release
8.0.0-alpha-008
Added
- Support for
#elifpreprocessor directive. #3268
Fixed
- Multiline
valbody in signature files was not indented correctly. #3269 ///doc comment without associated declaration (e.g. at end of file) was duplicated when formatting. #2499- NamedIndexedPropertySet with two SynLongIdent removed space. #3273
%%(double-percent) infix operator moved to new line, producing invalid F#. #2107- Indentation warning when formatting
matchwith long anonymous record discriminant. #1903 - Index-without-dot with variable key followed by unit arguments added spurious spaces, e.g.
dict[key] () ()becamedict [ key ] () (). #2519 - Open-ended expressions (lambda, if-then-else, match, ...) in non-last positions of infix, tuple, list/array, and record expressions now stay multiline to preserve semantics. #3279
- Lambda in tuple in list on single line changes code meaning. #3278
- Custom operator applied to lambda collapses to single line changing semantics. #3274
Special thanks to @Copilot and @nojaf!
March 10th Release
March 9th Release
March 9th Release
March 7th Release
8.0.0-alpha-004
Changed
- Improved error message when conditional compilation directives produce invalid syntax for some define combinations. #563
Fixed
- Lambda in non-last record field is now parenthesized when record is collapsed to single line to avoid producing invalid code. #3246
March 3rd Release
8.0.0-alpha-003
Fixed
- End of line comments after infix operators are preserved correctly. #2287
- Lambda closing parenthesis in chained method calls is no longer placed on its own line when
MultiLineLambdaClosingNewlineis enabled. #2553 - Long
&(AND) patterns now break across multiple lines to respect max line length. #1780 - Empty array with trivia inside now has correct indentation in Stroustrup style. #3098
- Multiline function type inside parentheses gets extra indentation to avoid compiler error. #3043
- Trivia around paren lambda with conditional compilation no longer causes merge error. #2844
- Type app closing angle bracket padded by previous expression length. #3179
- Dynamic operator on result of qualified function call causes formatting error. #3135
- Long delegate type with generic args no longer breaks around arrow. #2468
- Idempotency problem when formatting NUnit Assert.That with lambda argument. #1740
- Comment between lines of no-break infix expression no longer loses indentation. #2944
- Hash directives around access modifier in module declaration no longer lose indentation. #3188
December 15th Release
December 12th Release
8.0.0-alpha-001
Changed
- Update FCS to 'Remove LetOrUseKeyword from SynExprLetOrUseTrivia', commit 43932b4c7984d6562e91e5f1484868cd4f5befcf #3167
Special thanks to @Martin521, @Numpsy, @Thorium, @dawedawe, @karanveersp, @mattgallagher92, @nojaf and @tboby!