Skip to content

Comments duplicated when formatting for..of loop #8394

@cknitt

Description

@cknitt

In 13.0.0-alpha.4

let a = [1, 2, 3]

for x of a {
  // A
  Console.log(x)
}

reformats to

let a = [1, 2, 3]

for x of a {
// A
  // A
  Console.log(x)
}

which again reformats to

let a = [1, 2, 3]

for x of a {
// A
// A
  // A
  // A
  Console.log(x)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions