fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
770 stars 191 forks source link

Semicolon separators should be added when formating a multiline record #2858

Closed DedSec256 closed 1 year ago

DedSec256 commented 1 year ago

Issue created from fantomas-online

Code from documentation

let myRecord =
    { Level = 1
        Progress = "foo"
        Bar = "bar"
        Street = "Bakerstreet"
        Number = 42 }

Result

let myRecord =
    { Level = 1 Progress = "foo" Bar = "bar" Street = "Bakerstreet" Number = 42 }

Expected result

let myRecord =
    { Level = 1; Progress = "foo"; Bar = "bar"; Street = "Bakerstreet"; Number = 42 }

Extra information

Options

Fantomas main branch at 2023-04-20T06:35:38Z - f94d4ee80cfefe66b5324d315d021acc77922a90

Default Fantomas configuration

auduchinok commented 1 year ago

The result formatting is correct for this input (i.e. a record expression with a single field and nested application expressions on the right side).

DedSec256 commented 1 year ago

Indeed, I did not pay attention to the broken indentation