Skip to content

unexpected chained "then" method indentation  #6320

Closed
@jpetitte

Description

@jpetitte

In VS Code (as it uses the built in formatter, I assume this is the best place to put the issue), the TS formatting produces this:

foo()
  .then<void>(
  function(): void {
  },
  function(): void {
  }
  )
  .then<void>(
  function(): void {
  },
  function(): void {
  }
  );

I would expect this:

foo()
  .then<void>(
    function(): void {
    },
    function(): void {
    }
  )
  .then<void>(
    function(): void {
    },
    function(): void {
    }
  );

The former is pretty hard to read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions