Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format deletes spaces before preincrement #35179

Closed
mjbvz opened this issue Nov 19, 2019 · 1 comment · Fixed by #35979
Closed

Format deletes spaces before preincrement #35179

mjbvz opened this issue Nov 19, 2019 · 1 comment · Fixed by #35979
Labels
Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter Fixed A PR has been merged for this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Nov 19, 2019

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;
@DanielRosenwasser
Copy link
Member

Thanks @a-tarasyuk!

@DanielRosenwasser DanielRosenwasser added the Fixed A PR has been merged for this issue label Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Formatter The issue relates to the built-in formatter Fixed A PR has been merged for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants