<p dir="auto">No matter in which line is dot, code is dislocated after formatting:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11413326/7524334/f7c87c24-f509-11e4-8534-c832cef9cb96.png"><img src="https://cloud.githubusercontent.com/assets/11413326/7524334/f7c87c24-f509-11e4-8534-c832cef9cb96.png" alt="format_bug" style="max-width: 100%;"></a></p>
<p dir="auto">My environment:<br>
Microsoft Visual Studio Community 2013 (12.0.31101.00 Update 4)<br>
TypeScript 1.5.40427.1</p>
<p dir="auto">Before we would have:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var doSomethingThatReturnsAPromise: any;
this.doSomethingThatReturnsAPromise()
    .then(() =&gt; {
        // more code
    })
    .then(() =&gt; {
        // even more code
    });"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">doSomethingThatReturnsAPromise</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">doSomethingThatReturnsAPromise</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
    <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
        <span class="pl-c">// more code</span>
    <span class="pl-kos">}</span><span class="pl-kos">)</span>
    <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
        <span class="pl-c">// even more code</span>
    <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Now we have</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var doSomethingThatReturnsAPromise: any;
this.doSomethingThatReturnsAPromise()
    .then(() =&gt; {
    // more code
})
    .then(() =&gt; {
    // even more code
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">doSomethingThatReturnsAPromise</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">doSomethingThatReturnsAPromise</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
    <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
    <span class="pl-c">// more code</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
    <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
    <span class="pl-c">// even more code</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Raised from <a href="http://stackoverflow.com/questions/28298624/typescript-1-4-indentation-issue" rel="nofollow">SO</a></p>