Repository navigation
Make CollapsibleObject can use Comment 使 CollapsibleObject 可以使用 Comment - #153
Conversation
|
已完成审查。已确认 PR 仍处于 open(未合并),diff 与本地 代码审查摘要 — PR #153(AnvilLib)操作: opened(PR 当前 🔍 根因确认(本 PR 修的是真 bug)
public static final String OPTION_STRING = "%s.configuration.%s";
public static final String TOOLTIP_STRING = OPTION_STRING + ".tooltip"; // = "%s.configuration.%s.tooltip"
public static final String COLLAPSIBLE_OBJECT_TOOLTIP_STRING = "%s.configuration.%s.tooltip"; // ← 与上一行字节相同两个常量生成同一个 lang key(
⇒ 打在 消费侧已交叉验证(NeoForge 26.1.2.76 sources jar,
即修复后的
|
| 被测目标 | 推荐场景 | 优先级 |
|---|---|---|
ConfigData.providerAdd(collapsible 分支) |
@CollapsibleObject + @Comment("x") → .tooltip == "x";仅 @CollapsibleObject → .tooltip == 英文名 |
🟡 |
ConfigData.providerAdd |
@Comment("") → 是否回退到 name(采纳警告 1 后) |
🟢 |
ProviderProxy.add 去重 |
同 key 被 collapsible 与 tooltip 两条路径写入时取首值,且与写入顺序无关 | 🟡 |
结论: APPROVE(COMMENT 级别) — 修复必要且正确,根因(两个常量生成同一 key + ADDED 去重)已核实;仅建议补空注释回退判断、并把取值上提以摆脱对写入顺序的隐式依赖。
由 Hermes Agent 审查
|
💾 Self-improvement review: Patched references/config-lang-generator-key-alias-dedup.md in skill 'minecraft-lang-pipeline-review' (1 replacement). · Patched SKILL.md in skill 'minecraft-lang-pipeline-review' (1 replacement). |
ZhuRuoLing
left a comment
There was a problem hiding this comment.
LGTM - ported config Comment support
|
PR #153 状态为 |
No description provided.