Skip to content

[folding] make max folding region limit configurable #72994

@Lovecircle

Description

@Lovecircle
  • VSCode Version: 1.32.1
  • OS Version: Win7 x64

Steps to Reproduce:

  1. Set in editor settings:
    "editor.folding": true, "editor.foldingStrategy": "indentation"

  2. Open the attached file and go to line 43914 where folding stopped working.

test_ident.zip

  1. Delete couple of blocks of code - folding starts working again.

Developer of folding extension "Explicit Folding" pointed out to me that there is a hard limit of 5000 foldings per file. If it is so than I guess this is not a bug report but a feature request for editor setting in order to increase this limit. In my case, folding stopped working in file with about 35000 lines - which is not that many.

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

editor-foldingEditor code folding issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions