Repository navigation
fix(build): 将顶部构建选项明确命名为忽略路径(#2152) - #2343
Merged
Merged
Conversation
…152-build-option-scope-labels # Conflicts: # desktop/internal/workbench/build_tree_view.go # shared/platform-feature-matrix/features/build-system-plugins.json
# Conflicts: # shared/platform-feature-matrix/features/build-system-plugins.json
1lck
marked this pull request as ready for review
November 25, 2026 07:32
1lck
approved these changes
Nov 25, 2026
1lck
left a comment
Owner
There was a problem hiding this comment.
已核对顶部忽略路径和实例选项的文案范围,本地工作台回归及翻译生成检查通过。
2 tasks done
9 tasks done
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
PR 类型 / Type
改动说明 / What changes
背景 / Why
Build 工具窗口顶部工具栏的齿轮按钮只打开项目检测“忽略路径”对话框(
openBuildOptions(p, nil)),而构建系统实例行上的齿轮才打开该构建系统的配置选项({name} Options)。旧顶部入口名容易让用户误以为可以在顶部入口修改 Maven 等构建系统自身的工作区选项(如settings.xml与本地仓库)。改动 / Changes
desktop.build.ignoredPaths(Ignored Paths/忽略路径),同时保留合入自main的a.buildToolbarToggles(c, p)修复。e.instance == "")时,对话框标题改为desktop.build.ignoredPaths;从构建系统实例打开时继续使用desktop.build.instanceOptions({name} Options/{name} 选项)。TestBuildOptionsIgnoredPathsAreSavedOnThisMachineAndRestored中点击顶部齿轮的标签断言。TestVisualBuildIgnoredPaths(vivahead && lithevisual),用合成构建插件dev.lithe.test.ignored-paths在dark/light × en-US/zh-Hans下验证顶部齿轮提示与“忽略路径”对话框并生成截图。desktop.build.optionsTitle词条并重新生成。build_ignored_paths_visual_test.go证据路径与无头验证记录。不在本 PR 范围内 / Out of scope
Lithe-IDEA/lithe-plugin-maven),宿主仓库不添加 Maven 专属配置或页面。类型专属:fix
复现与根因
Build Detection Scope/构建系统检测范围;现明确显示Ignored Paths/忽略路径,与构建系统实例行各自的{name} Options/{name} 选项清晰区分。build_tree_view.go与build_options.go对无实例顶部入口使用了独立的desktop.build.optionsTitle,未直接表明它只编辑“忽略路径”。检查项
TestBuildOptionsIgnoredPathsAreSavedOnThisMachineAndRestored与TestBuildOptionsNameTheLineOfARefusedIgnoredPath在更改前按旧名点击失败、更新断言并通过,TestVisualBuildIgnoredPaths验证顶部齿轮提示与弹框标题。desktop.build.optionsTitle仅剩下被移除的 i18n 声明)。build_tree_view.go与build_options.go)。.agents/notes/implemented/bug-fix/记录:纯入口文案命名明确化,未改变架构或存储行为。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/build-system-plugins.json:保持partial/pending,补充无头验证记录与测试证据路径。./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh与./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD。.artifacts/下生成的矩阵视图。插件归属 / Plugin ownership
develop-lithe第三节自查命令,结果为空。dev.lithe.test.ignored-paths,对具体插件零依赖。shared/i18n/。UI 验证 / UI evidence
TestVisualBuildIgnoredPaths(提交8a452ceec,1280×800,dark/light × en-US/zh-Hans,命令:LITHE_VISUAL_OUTPUT_DIR=... ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/workbench -run '^TestVisualBuildIgnoredPaths$' -count=1 -timeout=120s),并检查生成的 8 张 PNG(工具栏齿轮悬停提示 + 对话框标题)。统一日志系统 / Structured logging
N/A:未新增或改动日志事件、警告或错误处理边界。
界面文案 / i18n
desktop.build.ignoredPaths;移除了不再被任何代码引用的desktop.build.optionsTitle,并运行node scripts/i18n/generate-i18n.mjs提交生成结果。shared/i18n/。node scripts/i18n/verify-app-language-localization.mjs、node scripts/i18n/generate-i18n.mjs --check与node --test --test-timeout=60000 scripts/i18n/test-i18n.mjs(62 项通过)。逻辑归属 / Logic placement
N/A:纯呈现层标签切换与测试,未新增或修改业务逻辑。
性能与内存 / Performance and memory
N/A:未新增后台任务、缓存、定时器或改动性能热路径。
设置 / Settings
desktop.build.ignoredPathsHelp)及配置来源提示(本机/团队/默认),不引入 Maven 专属宿主表单。插件契约 / Plugin contract
N/A:未改动插件契约、能力版本或宿主方法。
发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh通过;未新增或修改运行时资源路径。无用代码与重构 / Dead code and refactoring
desktop.build.optionsTitle已在本 PR 同步删除并重新生成字典。验证 / Verification
gofmt -l desktop./scripts/desktop/desktop-go.sh vet ./..../scripts/desktop/desktop-go.sh vet -tags dev ./..../scripts/desktop/desktop-go.sh test ./internal/i18n -count=11.208s)./scripts/desktop/desktop-go.sh test -tags 'dev vivahead' ./internal/settingswindow -count=15.549s)./scripts/desktop/desktop-go.sh test -tags 'dev vivahead' ./internal/workbench -run '^TestBuild' -count=143.785s)./scripts/desktop/desktop-go.sh test -tags 'dev vivahead' -race ./internal/workbench -run 'TestBuildOptions|TestBuildToolbar|TestBuildTree|TestBuildAndRunOption' -count=18.475s)LITHE_VISUAL_OUTPUT_DIR=... ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/workbench -run '^TestVisualBuildIgnoredPaths$' -count=1 -timeout=120s2.338s,8 张 PNG 已检查)./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh --base origin/main./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh --package ./internal/workbench -- --filter 'TestBuildOptionsIgnoredPathsAreSavedOnThisMachineAndRestored|TestBuildOptionsNameTheLineOfARefusedIgnoredPath'410ms/60ms,报告.artifacts/test-stability/index.html)./scripts/platform-feature-matrix/verify-platform-feature-matrix-change.sh origin/main HEAD&./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh./scripts/agent-notes/verify-agent-notes.shnode scripts/i18n/verify-app-language-localization.mjs&generate-i18n.mjs --check&node --test --test-timeout=60000 scripts/i18n/test-i18n.mjs./scripts/desktop/verify/verify-runtime-bundle-immutability.sh&node scripts/desktop/validate-pins.mjsrg自查未能执行的检查和原因:
提交前确认 / Final checks
origin/main,目标分支为main.artifacts/、PNG 或extension-host/