Skip to content

Format deletes spaces before preincrement #35179

Closed
@mjbvz

Description

@mjbvz

Copied from microsoft/vscode#85068

TypeScript Version: ^3.8.0-dev.20191116

Search Terms:

  • format
  • increment
  • preincrement

repo

  1. With following TS:
let a = 0;
if (a>0) ++a;
  1. format

Expected

let a = 0;
if (a > 0) ++a;

Actual
Missing space:

let a = 0;
if (a > 0)++a;

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 issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions