<p dir="auto">On testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133425257" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2994/hovercard" href="https://github.com/microsoft/vscode/issues/2994">#2994</a></p>
<p dir="auto">In this snippet range select both 'foo' and 'bar' methods and then perform 'Fold' operation.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class xyz {
    foo() {
        hello
    }
    bar() {
        world
    }
}"><pre class="notranslate"><code class="notranslate">class xyz {
    foo() {
        hello
    }
    bar() {
        world
    }
}
</code></pre></div>
<p dir="auto">Observe: only 'foo' is collapsed.<br>
I would expect that all regions overlapping with the text selection are collapsed.</p>
<p dir="auto">Testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133425257" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2994/hovercard" href="https://github.com/microsoft/vscode/issues/2994">#2994</a></p>
<p dir="auto">It seems to only work on the main cursor currently.</p>