<p dir="auto">I wonder how this one slipped through all this time</p>
<p dir="auto">When I hit "format code"...</p>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div&gt;
&lt;/div&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>
<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span></pre></div>
<p dir="auto">becomes</p>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div&gt;
  &lt;/div&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>
  <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span></pre></div>
<p dir="auto">Can be seen in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="124170956" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6281" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6281/hovercard" href="https://github.com/microsoft/TypeScript/issues/6281">#6281</a>. Possibly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="124032718" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6271" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6271/hovercard" href="https://github.com/microsoft/TypeScript/issues/6271">#6271</a>.</p>
<ul dir="auto">
<li>create a new .tsx file with content</li>
</ul>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div&gt;
&lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos">&gt;</span>
<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-smi">div</span><span class="pl-c1">&gt;</span></pre></div>
<ul dir="auto">
<li>select all -&gt; format document</li>
</ul>
<p dir="auto"><strong>Expected:</strong> formatting stays the same<br>
<strong>Actual:</strong> closing tag is indented</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8052307/9590717/495e58ec-4feb-11e5-9c16-da45220c76fd.gif"><img src="https://cloud.githubusercontent.com/assets/8052307/9590717/495e58ec-4feb-11e5-9c16-da45220c76fd.gif" alt="formatclosingtag" data-animated-image="" style="max-width: 100%;"></a></p>