Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collapse #4319

Closed
cherchyk opened this issue Mar 16, 2016 · 1 comment
Closed

collapse #4319

cherchyk opened this issue Mar 16, 2016 · 1 comment
Assignees

Comments

@cherchyk
Copy link

  • VSCode Version: 0.10.11
  • OS Version: W7

Steps to Reproduce:

When I click on minus sign in tine 785 then instead of collapsing from 785 to 787 or from 785 to 788 it collapse from 785 to 791. Lines 789-791 should not be collapsed.

image

@aeschli aeschli self-assigned this Mar 17, 2016
@aeschli
Copy link
Contributor

aeschli commented Mar 17, 2016

What you see is what's expected. The currently implemented folding strategy is based purely on the indentation of lines. A folding region starts when a line has a smaller indent than one or more following lines, and ends when there is a line with the same or smaller indent.

To be more smart and to, for example, use brackets, we will have to go one step further and introduce language agnostic folding regions. We have issue #3422 for this.

@aeschli aeschli closed this as completed Mar 17, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants