<ul dir="auto">
<li>VSCode Version: 1.0.1-insiders</li>
<li>OS Version: Windows 10 RTM</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Open <code class="notranslate">Microsoft.PowerShell.Commands.Management.dll-Help.xml</code></li>
<li>Collapse the first <code class="notranslate">&lt;command:syntax&gt;</code> XML element you come across</li>
<li>Notice that the collapsing is prematurely canceled</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466713/14690564/e374e2ae-0709-11e6-99f7-fa936e227315.png"><img src="https://cloud.githubusercontent.com/assets/466713/14690564/e374e2ae-0709-11e6-99f7-fa936e227315.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Cheers,<br>
<strong>Trevor Sullivan</strong><br>
<a href="https://trevorsullivan.net" rel="nofollow">https://trevorsullivan.net</a><br>
<a href="https://twitter.com/pcgeek86" rel="nofollow">https://twitter.com/pcgeek86</a></p>
<p dir="auto">The current implementation of folding uses an indentation based folding strategy that is unaware of the language it works on. Knowledge on the underlying language allows us to solve the following requests:</p>
<ul dir="auto">
<li>[folding] Cannot code fold empty functions <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135791496" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3349" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3349/hovercard" href="https://github.com/microsoft/vscode/issues/3349">#3349</a></li>
<li>[folding] Collapse ending brace to the same line <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135795757" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3352" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3352/hovercard" href="https://github.com/microsoft/vscode/issues/3352">#3352</a></li>
<li>[folding] Folded block comments should show */ <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135792155" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3350" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3350/hovercard" href="https://github.com/microsoft/vscode/issues/3350">#3350</a></li>
<li>[folding] should not fold whitespace after function <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135796670" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3353" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3353/hovercard" href="https://github.com/microsoft/vscode/issues/3353">#3353</a></li>
<li>[folding] Add code folding for markdown based on heading level <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135790053" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3347" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3347/hovercard" href="https://github.com/microsoft/vscode/issues/3347">#3347</a></li>
<li>[folding] [lua] Weird code folding with Lua <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137648390" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3602" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3602/hovercard" href="https://github.com/microsoft/vscode/issues/3602">#3602</a></li>
<li>[folding] Collapse code block ignore comments inside this block <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139890518" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3957" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3957/hovercard" href="https://github.com/microsoft/vscode/issues/3957">#3957</a></li>
<li>[folding] Code Folding: support golang multiline strings <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151930846" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/5994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/5994/hovercard" href="https://github.com/microsoft/vscode/issues/5994">#5994</a></li>
<li>[folding] Optionally fold chained method calls <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157350400" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6991" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6991/hovercard" href="https://github.com/microsoft/vscode/issues/6991">#6991</a></li>
</ul>