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

typescript formatting preincrement without curly braces #85068

Closed
devel0 opened this issue Nov 18, 2019 · 2 comments
Closed

typescript formatting preincrement without curly braces #85068

devel0 opened this issue Nov 18, 2019 · 2 comments
Assignees
Labels
formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@devel0
Copy link

devel0 commented Nov 18, 2019

  • VSCode Version: 1.41.0-insider (0d728c3) x64
  • OS Version: Ubuntu 19.04

Steps to Reproduce:

  1. type follow
let a = 0;
if (a>0) ++a;
  1. format ( ctrl+shift+I ) and results
let a = 0;
if (a > 0)++a;

where ++a miss beginning space.

Correct results should:

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

Note: using postfix increment problem doesn't exists.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Nov 18, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 19, 2019

Thanks. Opened microsoft/TypeScript#35179 to track upstream

@mjbvz mjbvz closed this as completed Nov 19, 2019
@mjbvz mjbvz added formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream labels Nov 19, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
formatting Source formatter issues javascript JavaScript support issues typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

2 participants