Skip to content

test(workbench): 项目树定位屏外行后首帧就能显示(#1820) - #2352

Merged
1lck merged 8 commits into
mainfrom
lithe-support/issue-1820-tree-list-scroll-regression
Nov 25, 2026
Merged

1lck merged 8 commits into
mainfrom
lithe-support/issue-1820-tree-list-scroll-regression

Conversation

@lithe-support

@lithe-support lithe-support Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Refs #1820(测试补齐阶段;不关闭 Issue,其他滚动入口及 Viva 上游合入仍需跟踪)。

目标

#1820 记录 Viva 的 ListState.ScrollTo 曾在滚动请求所在帧使用旧 offset,项目树等视图可能短暂空白。Viva fork 已修复根因,当前缺口是宿主调用点是否在一次用户操作的本帧正确呈现。

改动

  • 新增 TestProjectTreeLocatePaintsAnOffscreenFileAfterOneClick。用临时 fixture 创建 96 个文件,打开最后一项后点击项目树的“定位当前文件”;立即检查树的选中路径和最新无头画面的目标行 Hit。没有新增 sleep、无条件重绘、重试或绕过原 ScrollTo 的代码。
  • 更新跨平台树/列表功能矩阵,提供测试入口与确认方式;原生 macOS/Windows 验收仍为 pending。
  • 不改变生产滚动代码、UI 样式、插件协议或系统资源。

测试与限制

原问题的具体坏帧与已有 fork 修复逻辑已根据 #1820 复核,新增用例明确要求点击后即有可见 Hit。当前执行环境仅有 Go 1.23,仓库要求 Go 1.27 + 固定 Core,尚不能完整运行 workbench 无头用例;因此 PR 以 Draft 等待 GitHub Actions 的实际 Go 编译和 UI 测试,不声称已动态通过。 UI 视觉回归在真实 macOS/Windows 窗口尚未执行。

这是 #1820 的一个调用点覆盖,不代替 Issue 所列 Outline、Git Console、Log Window、Marketplace 等调用点后续核查。不自动合并。

@ghfind-review ghfind-review Bot added the review: no-score ghfind author score missing (not zero) label Nov 23, 2026
@lithe-support

lithe-support Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Lithe Review(最新提交 5856b4b)

已从仅项目树扩展到插件市场列表首帧回归,增加 120 条索引的 ScrollTo(0) 单帧测试;对其它入口的静态检查发现:项目树/结构树均调用 RequestFrame、日志列表主动安排下一帧;搜索与 Marketplace 重置从 ListState 下次声明执行;GitConsole 使用 Text 的滚动接口而非同一 List。这不是已经完成所有场景的原生验收。Linux workbench/settingswindow 全量测试受基线 Viva Text/Spacer Key panic 阻挡,macOS/Windows 因 Draft 跳过。未达到完整 #1820 验收,不可合并。

@lithe-support

lithe-support Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Lithe Review|#1820 现行入口回归与 CI 汇总(head 57fb21dc2dfc)

  • 在现行 Viva List 的 项目树、结构视图、项目搜索、全局搜索、Marketplace、日志窗口 增加/扩展屏外行与 ScrollTo(0)/ScrollIntoView 单次 Pump 即可见的回归;项目树测试确保目标起初确实不在视口,搜索使用既有大结果与分页 fixture。
  • Git Console 当前使用 Viva textview.View,不是 Issue 所列的旧 ui.List 路径;Diff 也早已不再用原 List。Viva 上游 fix:修复 Java Unicode 接口符号与 LSP 导航跳转 #219 已合并,不再阻塞该类框架行为。
  • 最新 Linux CI internal/workbench、internal/logwindow、internal/settingswindow 测试均 ok,含新增回归;命令发现、LSP 编辑器、搜索截图步骤通过;格式、功能矩阵等辅助门禁也成功。
  • 唯一阻挡 Desktop CI gate 的是 internal/toolchain/TestSavePinPreservesIgnoreTextAndOvercomesLaterNegation 旧断言,与本 PR Diff 无关,已在 fix(desktop): 接入工具链忽略文件自忽略规则 #2328 报告。macOS/Windows 因 Draft 跳过,原生视觉仍未测。

本轮代码与 Linux 回归覆盖已完成;在基线 CI 修复和原生测试之前保持 Draft,不合并、不提前关闭 Issue。

# Conflicts:
#	shared/platform-feature-matrix/features/diagnostics-export.json
#	shared/platform-feature-matrix/features/search-project.json
@1lck
1lck marked this pull request as ready for review November 25, 2026 07:32

@1lck 1lck left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已验证项目搜索首帧回归使用稳定行标识,定向测试连续通过两次。

@1lck
1lck merged commit 9627862 into main Nov 25, 2026
7 of 9 checks passed
@xiaoyumuxi xiaoyumuxi mentioned this pull request Nov 25, 2026
9 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: no-score ghfind author score missing (not zero)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant