microsoft / microsoft/TypeScript

Folding ranges not returned for highly nested functions

Open
#25,596 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Domain: LS: Outlining Needs Proposal Suggestion VS Code Tracked
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a .ts file in VS Code by adding more than seven nested code blocks and checking whether folding icons appear. Compare ordinary nested blocks with //#region folding; done means folding and unfolding work at the reported nesting depth while regions continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.