Skip to content

Indent of function body after multiple params adds extra level of indent #17699

Closed as not planned
@aozgaa

Description

@aozgaa

TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)

Code
Consider the source file

function foo(
    a: number) {^}

where caret is at ^, and tsconfig.json is {}. Then hit <Enter>.

Expected behavior:
source file becomes

function foo(
    a: number) {
    ^
}

Actual behavior:
source file becomes

function foo(
    a: number) {
        ^
    }

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