Feat/settings command #422
Open
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.
改动说明
新增
/setting命令,提供GUI配置界面,方便通过交互式菜单修改配置。主要变更
1. 新增
/setting命令 (598行)2. 新增配置项
在
config.ts中添加8个配置项:reasoningLevel: 推理级别 (disabled/low/medium/high)completionSound: 完成提示音playSounds: 播放时机 (always/when-focused/when-unfocused)showTips: 是否显示提示diffDisplayMode: Diff显示模式 (github/unified)respectGitignore: 文件选择器是否尊重 .gitignoretheme: 主题 (dark/light)autoConnectIDE: 是否自动连接IDE3. 配置验证机制
新增
ENUM_CONFIG_KEYS常量,为枚举配置提供运行时验证:setConfig时检查值是否有效approvalMode、outputFormat等已有枚举的验证测试
Closes #386