Folding ranges not returned for highly nested functions
See original GitHub issueFrom @ryaa on July 9, 2018 5:38
- VSCode Version: Version 1.25.0 (1.25.0)
- OS Version: MacOS High Sierra 10.13.5
Steps to Reproduce:
- Create .ts file and add multiple enclosed blocks of code
- Note that starting some level (> 7?) the folding icon is not displayed and folding/unfolding does not work - see attached (note that + icon is not displayed) Please note that //#region seems to be working
Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: Microsoft/vscode#53842
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to define a nested function like this?
I've tried Analytic->True but it still gives me warnings of the form "Range specification in Range[-1+n] does not have appropriate bounds. >>" , ......
Read more >Eliminating the Static Overhead of Ranges - vector Of bool
Problem 1: Nested function calls are hard to read. ... For each element of the range returned by get_all_users() , transform that element ......
Read more >Use nested functions in a formula - Microsoft Support
Using a function as one of the arguments in a formula that uses a function is called nesting, and we'll refer to that...
Read more >Fold - Neovim docs
To increase the fold level of a fold for a range of lines, define a fold inside ... But note that foldlevel() may...
Read more >How do I collapse sections of code in Visual Studio Code for ...
Folding has been rolled out and is now implemented since Visual Studio Code version 0.10.11. There are these keyboard shortcuts available:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would love to see this fixed. As in mjbvz’s example, it is really easy to run into this with nested unit test describe blocks, and folding is really nice when trying to navigate large unit test files.
Just a notification will be greatly helpful to prevent any confusions from users. When I experienced this issue for the first time, I thought there was a syntax error in my code which prevents folding regions to occur. Then I found out the limit by gradually removing functions manually.