question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Folding ranges not returned for highly nested functions

See original GitHub issue

From @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:

  1. Create .ts file and add multiple enclosed blocks of code
  2. 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
screen shot 2018-07-09 at 08 31 53

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

Copied from original issue: Microsoft/vscode#53842

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bhaynes777commented, Oct 24, 2022

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.

1reaction
vincentvictoriacommented, Aug 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found