Skip to content

Unexpected space when formatting code #9823

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

Closed
aeschli opened this issue Jul 19, 2016 · 3 comments
Closed

Unexpected space when formatting code #9823

aeschli opened this issue Jul 19, 2016 · 3 comments
Labels
Domain: Formatter The issue relates to the built-in formatter Domain: JSX/TSX Relates to the JSX parser and emitter Duplicate An existing issue was already created

Comments

@aeschli
Copy link

aeschli commented Jul 19, 2016

From @imWildCat on June 23, 2016 8:56

  • VSCode Version:Version 1.2.1 (1.2.1) fe7f407b95b7f78405846188259504b34ef72761
  • OS Version: OS X 10.11.5 (15F34)

Steps to Reproduce:

  1. A react native project with code like the gif
  2. Format code

Gif:
2016-06-23 16_55_40

Copied from original issue: microsoft/vscode#8037

@aeschli
Copy link
Author

aeschli commented Jul 19, 2016

Issue with the TypeScript formatter.
Reproduced with the following snippet:

render() {
  return (
    <Scene>
      <Scene key="me" component={PageWrapper(HomePage)} title="me" />
    </Scene>
  );
}

@saschanaz
Copy link
Contributor

saschanaz commented Jul 30, 2016

I cannot reproduce this in TS 2.0 beta. Maybe fixed by #9361.

@RyanCavanaugh RyanCavanaugh added Duplicate An existing issue was already created and removed Bug A bug in TypeScript labels Aug 1, 2016
@RyanCavanaugh
Copy link
Member

I think that PR has fixed nearly all these issues. Please open a new issue if you see this in the 2.0 beta

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: Formatter The issue relates to the built-in formatter Domain: JSX/TSX Relates to the JSX parser and emitter Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants