Skip to content

Issue in indentation when formatting consecutive objects #6271

Open
@louy

Description

@louy

Reposting microsoft/vscode#1661

There's a very annoying issue when hitting "format code" in a TS file. Here's an example:

[{
}, {
}]
// or
fn({
}, {
})

becomes:

[{
}, {
  }]
// or
fn({
}, {
  })

This gets really annoying when you have large nested objects containing things like functions etc...

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions