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

Folding is not working in xml #4260

Closed
ritoscue opened this issue Mar 15, 2016 · 1 comment
Closed

Folding is not working in xml #4260

ritoscue opened this issue Mar 15, 2016 · 1 comment
Assignees

Comments

@ritoscue
Copy link

  • VSCode Version:0.10.11
  • OS Version:

Steps to Reproduce:

  1. Open File folding.txt in VS Code:
    folding.txt
  2. select language xml
  3. try folding
  4. Result is like:
    folding
@aeschli aeschli self-assigned this Mar 16, 2016
@aeschli
Copy link
Contributor

aeschli commented Mar 16, 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, understand tags, 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 16, 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