Merged
Conversation
将 Build/Run 命令对话框的草稿处理抽离为独立辅助模块, 统一默认值、配置克隆、命令有效性判断与持久化前的标准化逻辑。 子 worktree 在“覆盖当前节点”和“继承父项目”之间切换时, 会同步对齐草稿内容;保存到父项目时会清理当前节点的覆盖配置, 从而真正恢复对父项目命令的继承行为。 同时将执行失败和保存失败从原生 alert 改为应用内提示弹窗, 避免打断当前弹窗的焦点与交互流程,并补充对应单元测试。 补充修复: - 将 hasBuildRunCommand 声明为类型守卫,修复 resolveEffectiveBuildRunCommand 无法通过 web 类型检查的问题。 产品层面: - Build/Run 配置面板在 worktree/父项目之间切换时行为更一致; - 恢复继承与错误提示更稳定,减少误保存和交互中断。 Signed-off-by: Lulu <58587930+lulu-sk@users.noreply.github.com>
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.
将 Build/Run 命令对话框的草稿处理抽离为独立辅助模块,
统一默认值、配置克隆、命令有效性判断与持久化前的标准化逻辑。
子 worktree 在“覆盖当前节点”和“继承父项目”之间切换时,
会同步对齐草稿内容;保存到父项目时会清理当前节点的覆盖配置,
从而真正恢复对父项目命令的继承行为。
同时将执行失败和保存失败从原生 alert 改为应用内提示弹窗,
避免打断当前弹窗的焦点与交互流程,并补充对应单元测试。
补充修复:
产品层面: