- VSCode Version: 1.44.2
- OS Version: macOS 10.15.4 Catalina
Steps to Reproduce:
- Create new JSX file and have React available
- Input this text, for example:
import React from 'react'
const demo =
<div>
<
div className="foo">
</div>
</div>;
Actual output:

I believe the empty line between the nested div's opening chevron and the element's name is to blame. Without the empty line:

This also occurs in .tsx files.
Does this issue occur when all extensions are disabled?: Yes
Edit: apparently, github's parser also doesn't handle this well, but it's correct JSX.
Steps to Reproduce:
Actual output:

I believe the empty line between the nested
div's opening chevron and the element's name is to blame. Without the empty line:This also occurs in .tsx files.
Does this issue occur when all extensions are disabled?: Yes
Edit: apparently, github's parser also doesn't handle this well, but it's correct JSX.