Skip to content

优化 macOS UI 布局与交互体验 - #55

Merged
1lck merged 2 commits into
1lck:preview/0.2.0from
arkleselect:fix/ui-polish
Aug 11, 2026
Merged

1lck merged 2 commits into
1lck:preview/0.2.0from
arkleselect:fix/ui-polish

Conversation

@arkleselect

Copy link
Copy Markdown
Collaborator

本 PR 优化了 macOS 版本的界面布局和交互体验:

  • 优化欢迎页搜索框焦点行为
  • 调整目录树字体、图标和行高
  • 移除目录树文件点击时的按压反馈和动画
  • 优化 Activity Bar 图标尺寸和内边距
  • 修复编辑器标签页拖拽预览宽度异常
  • 移除拖拽预览边框
  • 隐藏顶部更多菜单的下拉箭头
  • 优化已打开文件的切换响应速度
  • 减少目录树重复计算
11 22 33 44 55

验证结果:
122 tests in 6 suites passed
git diff --check 通过

@arkleselect
arkleselect requested a review from 1lck as a code owner August 11, 2026 09:01
@1lck

1lck commented Aug 11, 2026

Copy link
Copy Markdown
Owner

pr指向似乎弄错了

@1lck

1lck commented Aug 11, 2026

Copy link
Copy Markdown
Owner

感谢打磨,代码整体挺干净,本地 122 tests 全绿。合并前想请你补两处。

  1. DocumentFeatureModel.swift:104 快速路径漏了 latestFileOpenRequestID :
    补一行latestFileOpenRequestID = UUID() 就行。不然会这样:点开未打开的大文件 A(异步读盘中,latest = A),紧接着点已打开的 B(快速路径设了 activeDocumentID,但 latest 还是 A)。A 读完后条件成立,把激活项从 B 抢回 A。
    顺便补个用例,异步开 A 期间切到 B,A 完成后仍是 B。

  2. 目录树 hover 反馈建议留着:
    去掉按压闪烁我认同,但 hoverBackground: .clear 加上去掉 .lithePointer(),现在鼠标划过目录树完全没反应了,目录行连 isActive 都没有。按压闪烁是动画滞后和 .plain 按压态造成的,只留 animation: nil 就够,hoverBackground 恢复默认、.lithePointer() 加回来。LitheTreeRowButtonStyle 保留。

@arkleselect arkleselect reopened this Aug 11, 2026
@1lck
1lck changed the base branch from main to preview/0.2.0 August 11, 2026 11:07
@1lck
1lck merged commit a951775 into 1lck:preview/0.2.0 Aug 11, 2026
2 of 4 checks passed
xiaoyumuxi added a commit that referenced this pull request Nov 15, 2026
…1975)

- PINNED_CORE_REVISION 升到 268d9a2(#55 分支头,含已合入的 #54)
- targetBindings.adapterArguments:按路径事实填适配器自有参数,env.<变量> 给环境加一个变量
- targetBindings.cwd 可绑到 target.directory:被调程序在源文件所在目录运行
- workbench 调试测试覆盖 adapterArguments 与 env 变量
- 功能矩阵 plugin-debug-adapters 记录宿主无需改动
xiaoyumuxi added a commit that referenced this pull request Nov 15, 2026
#1975 固定的 268d9a2 是 #55 分支头,没有进 Core main:#55 squash 合入时只带了
adapterArguments(4a2ecb3),cwd ← target.directory 由 #56 补进 main(9425469)。
两者代码与 268d9a2 一致,这里把固定版本改到 main 上的提交,并更新注释。
@xiaoyumuxi xiaoyumuxi mentioned this pull request Nov 22, 2026
15 of 18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants