Skip to content

formatter won't keep multiline for exceptions #7946

Description

@tx46

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterIssues related to code formatting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions