Repository navigation
feat(build): report the implicit value of unset path options and option descriptions - #120
Merged
Merged
Conversation
…on descriptions A model's optionDefaults may now name a text, file or directory option: the value the tool uses while the option is unset (Maven's user settings file and local repository). build.resolveOptions returns it as implicitValue, display only, so hosts can show the effective path as IDEA's PathOverrider does. Options may declare a description for the host's info icon. Refs 1lck/Lithe-IDEA#2152, 1lck/Lithe-IDEA#2204 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1lck
marked this pull request as ready for review
November 19, 2026 12:29
This was referenced Nov 19, 2026
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
改动说明
IDEA 的 Maven 设置里,“用户设置文件”和“本地仓库”在没有覆盖时也会灰显 Maven 实际使用的路径,勾选“覆盖”后才能编辑(
MavenGeneralPanel中的PathOverrider)。Lithe 的构建选项只能拿到用户值或清单默认值,看不到工具自己的取值,所以只能显示空白。Maven 的实际路径只有工具知道,模型加载时由插件报告。模型报告路径选项的实际值(
optionDefaults)optionDefaults原先只能填choicesFromModel选项,现在也可以填text、file、directory选项,值是选项未设置时工具实际使用的那一个。只保留第一个值,因为工具只有一个。litheBuildModel规范模型和静态模型的model.map.optionDefaults。boolean选项和声明了固定选项的选择类选项仍会被拒绝,错误信息也相应更新。build.resolveOptions返回值source: "unset")的text、file、directory选项返回implicitValue。用户设了值或清单声明了default时不返回,因为那时生效值就是value。description。清单
options[].description(1–512 个字符):选项的作用说明,供宿主在选项旁的 ⓘ 中显示,只用于显示。契约与文档
plugin-manifest.schema.json:options[].description,以及optionDefaults的说明。build.resolveOptions的返回值和litheBuildModel一节。reference/domains/build-systems.md中英文同步。验证
cargo test -p lithe-build -p lithe-core在 macOS ARM64 上通过。新增两个测试:model_reports_the_implicit_value_of_unset_path_options:规范模型只保留第一个值,boolean选项的值被丢弃;未设置时返回implicitValue和description;有声明默认值或用户值时不返回。model_map_option_defaults_name_choice_or_text_options:静态映射可以填file选项,填boolean选项会被拒绝。cargo clippy -D warnings、cargo fmt --check、verify-rust-core-comments.sh build、node shared/plugins/scripts/verify-docs.mjs都通过。sdk-e2e.mjs;旧插件不受影响。🤖 Generated with Claude Code