feat(config): 定义 Terminal Profile 配置契约 - #275
Draft
Eric-Song-Nop wants to merge 1 commit into
Draft
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
背景
这是 #274 的第一阶段:先定义 Terminal Profile 的配置契约,后续再接入设置界面、终端创建流程和各平台运行时。
本 PR 做了什么
profiles配置:default:新建终端时使用的 Profile IDlist:按菜单顺序保存 ProfileTerminalProfileConfig:id、namekind = "shell" | "wsl"program、argsstarting_directorystartup_commanddistribution(WSL)themeprogram + args,避免把平台相关的命令行转义提前固化进配置格式。[profiles],旧配置仍保持当前的平台 Shell 自动发现行为。配置示例
明确不在本 PR 范围内
验证
cargo fmt -p con-core -- --checkcargo test -p con-core(93 passed)cargo check -p con在构建con-ghostty前置步骤被本机 Zig 版本拦截:当前为 0.16.0,仓库要求 0.15.2cargo fmt --all -- --check仍会命中本分支未修改的既有格式差异:crates/con-app/src/workspace/render.rsPart of #274