Skip to content

tsx attribute formatting removes bracket spacing #11791

@bookman25

Description

@bookman25
  • VSCode Version: 1.5.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. TypeScript Version: 2.*
  2. <input value={ this.state.value } />
  3. Format document

Expected behavior:
In 1.8.10 the spacing inside the brackets was unchanged on format operation (closing bracket } or format document).
<input value={ this.state.value } />

Actual behavior:
In 2.* the space inside the brackets is always removed when formatting.

<input value={this.state.value} />

Looks like it might be related to: microsoft/TypeScript#9361

Metadata

Metadata

Assignees

Labels

typescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions