microsoft / microsoft/TypeScript

Folding ranges not returned for highly nested functions

未关闭
#25,596 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Domain: LS: Outlining Needs Proposal Suggestion VS Code Tracked
主要语言
Go
星标
111k
派生
14.4k
平均合并
1 天 19 小时
30 天内合并 PR
117

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 VS Code 中的 .ts 文件中添加超过七层嵌套的代码块,并检查是否出现折叠图标,以重现该问题。将普通嵌套代码块与 //#region 折叠进行比较;当折叠深度达到报告的嵌套深度时,折叠和展开均能正常工作,同时 region 仍能正常工作,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
compilers
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。