Skip to content

Incorrect JSX fragment formatting #40454

@caub

Description

@caub

Currently they are auto-formatted to something bad:

const foo = () => (
	<div>
		{true ? (
			<>
			<div>lol</div>
			<span>k</span>
			</>
		) : (
				<div>
					bar
			</div>
			)}
	</div>
);

expected:

const foo = () => (
	<div>
		{true ? (
			<>
				<div>lol</div>
				<span>k</span>
			</>
		) : (
			<div>
				bar
			</div>
		)}
	</div>
);

OS: linux
vscode: 1.19.0

Metadata

Metadata

Assignees

Labels

javascriptJavaScript 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