rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

formatter won't keep multiline for exceptions

Open tx46 opened this issue 2 months ago • 0 comments

how to test:

  1. type type t = {name: string, msg: string} and run formatter
  2. notice still single line
  3. type
type t = {
  name: string,
  msg: string,
}

and run formattter 4. notice still four lines 5. type exception Foo({name: string,msg: string}) and run formatter 6. notice still single line 7. type

exception Foo({
  name: string,
  msg: string,
})

and run formatter 8. BUG: formatter forces it to single line

tx46 avatar Oct 11 '25 12:10 tx46