Skip to content

Whitespace formatting between for and await #21084

Closed
@srolel

Description

@srolel

TypeScript Version: 2.7.0-dev.20180108

Code

async function f() {
    for          await (const x of g()) {
        console.log(x);
    }
}

Expected behavior:

Should be formatted:

async function f() {
    for await (const x of g()) {
        console.log(x);
    }
}

Actual behavior:

No changes are made by the formatter.

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 issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions