Skip to content

Incorrect indentation for computed property named method with decorators #2661

@rbuckton

Description

@rbuckton

Formatting the following document in Visual Studio results in incorrect indentation:

class C {
    @dec
    ["method"]() { }
}

Actual:

class C {
    @dec
        ["method"]() { }
}

Expected:

class C {
    @dec
    ["method"]() { }
}

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions