fsprojects / fantomas

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

Online formatter URLs do not remember stroustrup #2878

Closed cmeeren closed 10 months ago

cmeeren commented 1 year ago
  1. Go to https://fsprojects.github.io/fantomas-tools/#/fantomas/preview
  2. Enable Stroustrup style
  3. Enter this code:
    type A = { A: int option; B: int option; C: int option }
  4. Verify that the above is formatted as
    type A = {
        A: int option
        B: int option
        C: int option
    }
  5. Copy the URL
  6. Open the URL in another tab
  7. Observe that stroustrup is no longer enabled

I would guess this is related to the renaming of the relevant config key/value around v6.

josh-degraw commented 10 months ago

I'm not seeing this behavior anymore, are you still experiencing this issue? This repro works fine for me at this point.

cmeeren commented 10 months ago

Yep, seems to be fixed