Repository navigation
feat(desktop): 构建工具、编译器改为与工具链、调试器一样的分栏页 - #2180
Merged
Merged
Conversation
- 侧栏每个有页面的种类只占一行,行尾是页面数,不再折叠成文件夹、 也不再逐个列出插件页;插件页只在搜索命中时单独出现在侧栏。 - 点开种类是分栏页:左侧按需渲染这一类的页面和提供插件,可按页面名 或插件名筛选,底部是页面数;右侧是选中页面的设置,和插件详情的 「设置」标签共用同一个表单与草稿。再次打开回到上次看的页面。 - 面包屑改为「构建、执行、部署 › 种类」;目录页的种类行直接打开分栏页。 - 删除文件夹页、folderMin/folderLimit 与 folderAll 词条;新增 kindPageCount、kindFilter、kindNoMatches 中英词条并重新生成。 - core.SettingsNavigationItem.Limit 与 SettingsNavigationRow.Overflow 已无人使用,删除绑定字段。 - 原型 build-execution-settings.html 同步为分栏页;截图换成 32-settings-build-kind,删除 32-settings-build-folder。 - 更新设置分类 Note、构建设置结构 Note、契约缺口 Note 和功能矩阵。
xiaoyumuxi
marked this pull request as ready for review
November 18, 2026 17:12
23 of 26 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
plugins.settings.navigation已无人使用的limit与溢出行。本 PR 已不再发送limit,fix(windows): improve Git diff viewing and history pagination #103 合入前后都能工作。PR 类型 / Type
改动说明 / What changes
背景 / Why
#2179 合入后,「构建、执行、部署」下插件声明的构建工具页、编译器页,同一种类满 3 个时会折叠成侧栏文件夹:展开列 6 个,末行「全部 N 个…」再打开文件夹页。而「工具链」「调试器」是左侧列表、右侧详情的分栏页。两种结构并存,用户要在侧栏里一层层展开才能找到某个插件页。
本 PR 把构建工具、编译器也改成和「工具链」「调试器」一样的分栏页:侧栏每个种类只占一行,点开后左侧列出这一类的全部页面和提供它的插件,右侧是选中页面的设置。插件自己的设置位置仍然不变,插件详情的「设置」标签照样列出全部设置,两处编辑同一份设置和同一份草稿。
改动 / Changes
侧栏(
settings_surfaces.go、model.go、window.go)kind:<种类>,行尾显示页面数,例如“构建工具 8”。不再展开,也没有「全部 N 个…」行。folderMin、folderLimit常量、folderAll行键,以及文件夹页的构建和筛选逻辑(build_directory_view.go减少约 170 行)。分栏页(新增
build_kind_view.go、window_view.go)selectPluginForm),所以草稿、保存和报错行为都和详情标签一致。目录页(
build_directory_view.go)kindNames(3)个页面名和“等 N 个”,点击打开对应种类的分栏页,不再打开文件夹页。Core 绑定(
desktop/internal/core/settings_surfaces.go)SettingsNavigationItem.Limit和SettingsNavigationRow.Overflow。宿主不再发送limit,Core 端的同名参数在 Core fix(windows): improve Git diff viewing and history pagination #103 删除。Core 固定版本(
scripts/desktop/build-desktop-core.sh)PINNED_CORE_REVISION从6712596换成 Core main 上的8d3c16b。feat(desktop): 「构建、执行、部署」按原型重构为目录页、工具链与调试器子页 #2179 合入时没有带上把固定版本换到 main 的那个 commit,所以 main 现在固定的6712596是 Core 已删除的功能分支上的 commit,不在 Core main 上。8d3c16b是 fix(windows): send diff pathspecs the shared core accepts #102 squash 合入后的 commit,代码树与6712596相同。注释同步改写。文案(
shared/i18n/features/build-settings.json)folderCount、folderFilter、folderEmpty改为kindPageCount(“{count} 个页面”)、kindFilter、kindNoMatches;删除folderAll。已重新生成shared.generated.go。原型、笔记与矩阵
docs/design/build-execution-settings.html:种类页改为分栏视图(pgKind),与实现一致。.agents/notes/implemented/feature/2026-10-15-macos-settings-hierarchy.md:插件页一段改为“每个种类在侧栏只占一行、点开是分栏页、插件页只在搜索命中时出现在侧栏”。.agents/notes/implemented/feature/2026-11-18-build-execution-settings-at-scale.md:新增「构建工具、编译器页」一节;规模示例改为“侧栏只多一行‘构建工具 8’”;“不要这样做”增加“不要把某一类的插件页逐个列进侧栏”;适用范围加入build_kind_view.go。.agents/notes/proposed/feature/2026-11-18-build-settings-remaining-contract-gaps.md:一处措辞随文件夹删除改正。application-settings.json:说明改为分栏页,证据引用下面四个新测试,验证状态保持pending。测试(
build_directory_view_test.go、visual_capture_test.go)TestBuildKindWithFewPagesListsThemDirectly、TestBuildKindFoldsIntoAFolderThatListsSix、TestBuildPageNamesAKindAndOpensItsFolder。TestBuildKindIsOneRowThatOpensItsPage:8 个页面只占一行,点开是分栏页,右侧是第一页的设置;TestBuildPageNamesAKindAndOpensItsPage:目录页的种类摘要打开对应分栏页;TestBuildKindFilterKeepsThePagesItMatchesAndTheKindRemembersOne:按插件名筛选只留下它提供的页面;在列表里选中页面后仍停在分栏页;离开再回来时回到上次看的页面;TestSearchListsOnlyTheKindPagesItMatches:侧栏搜索只列出命中的插件页,只命中种类时不列出它的页面,命中行带路径,点击后结束搜索并打开分栏页。32-settings-build-folder换成32-settings-build-kind;32-settings-build目录页截图随摘要文字更新。不在本 PR 范围内 / Out of scope
limit与溢出行:在 refactor(plugins): 删除设置导航已无人使用的 limit 与溢出行 Lithe-IDEA/Lithe-core-rust#103,两边不互相依赖。fix(windows): improve Git diff viewing and history pagination #103 合入后,下一次升级固定版本时会带上。.agents/notes/proposed/feature/2026-11-18-build-settings-remaining-contract-gaps.md后续单独做。类型专属:feat
多平台对齐
pending。platform-specific),理由:范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/application-settings.json:说明和证据按实际填写,没有运行的原生验证保持pending./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(206 条能力通过)和./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD(matrix change gate passed).artifacts/下生成的矩阵视图插件归属 / Plugin ownership
develop-lithe第三节“插件归属与宿主零依赖”的自查命令,结果为空application-settings的证据只引用宿主测试shared/i18n/;改动的词条都是宿主自己的界面文字,页面名、种类名和插件名原样显示插件声明的内容UI 验证 / UI evidence
LITHE_VISUAL_OUTPUT_DIR=<目录> ../scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' -run 'TestVisualSettings.*/32-settings-build' ./internal/settingswindow/b1150d3docs/assets/build-execution-settings/,下表的链接按提交 SHA 固定统一日志系统 / Structured logging
N/A:没有新增或改动生命周期里程碑、操作终态、降级或失败路径的日志。右侧表单沿用插件设置表单原有的加载、保存和报错。
界面文案 / i18n
shared/i18n/features/build-settings.json中英词条,运行node scripts/i18n/generate-i18n.mjs并提交生成结果,没有手改生成文件shared/i18n/node scripts/i18n/verify-app-language-localization.mjs和node scripts/i18n/generate-i18n.mjs --check,都通过,没有放宽脚本或扩大豁免名单逻辑归属 / Logic placement
plugins.settings.navigation投影给出;分栏页左侧的筛选只是宿主对已加载页面列表的呈现过滤,和「工具链」「调试器」页的做法一致limit已不再使用,Core 端在 fix(windows): improve Git diff viewing and history pagination #103 删除性能与内存 / Performance and memory
设置 / Settings
.agents/notes/implemented/feature/2026-10-15-macos-settings-hierarchy.md确定,该笔记已同步更新插件契约 / Plugin contract
plugins.settings.navigation的limit删除在 Core fix(windows): improve Git diff viewing and history pagination #103,该命令不是插件契约scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION换成 Core main 上的8d3c16b;不设LITHE_CORE_RUST_DIR时,桌面端测试读取的就是这份 Coresdk-e2e.mjs:没有改插件后端协议发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh,通过无用代码与重构 / Dead code and refactoring
folderMin、folderLimit、folderAll,Core 绑定里的Limit、Overflow,以及对应的测试、词条和截图验证 / Verification
../scripts/desktop/desktop-go.sh test ./...(在desktop/下运行,固定版本8d3c16b)../scripts/desktop/desktop-go.sh test -race -count=3 ./internal/settingswindow/../scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' -run 'TestVisualSettings.*/32-settings-build' ./internal/settingswindow/gofmt -l、go vet ./internal/settingswindow/ ./internal/core/node scripts/i18n/generate-i18n.mjs --check、node scripts/i18n/verify-app-language-localization.mjs./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD./scripts/agent-notes/verify-agent-notes.sh./scripts/desktop/verify/verify-runtime-bundle-immutability.shdevelop-lithe第三节)未能执行的检查和原因:
提交前确认 / Final checks
main(f1ad7b3,feat(desktop): 「构建、执行、部署」按原型重构为目录页、工具链与调试器子页 #2179 合入后)创建;目标分支是main.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图