Skip to content

insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets not behaving correctly #7540

Description

@dbaeumer

From @sofianhn on March 15, 2016 21:7

  1. add "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true to the workspace settings.
  2. open a TS file and copy if (x) {var x = 1;}
  3. select the line and format
  4. expected==Actual => if (x) { var x = 1; }
  5. change the option to false.
  6. format again
  7. Actual == if (x) { var x = 1; } but expected if (x) {var x = 1;}

Copied from original issue: microsoft/vscode#4279

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions