Skip to content

insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets does not correctly add space between } and ] #16757

Description

@Mac351

TypeScript Version: 2.4.1

Code
set typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets to true

Format this code:

let x = [ { a: 1 }];

Expected behavior:
Space is added between } and ]. I.E.:

let x = [ { a: 1 } ];

Actual behavior:
No space is added and the code fails tslint

let x = [ { a: 1 }];

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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