Feat/settings command#422
Open
lyw405 wants to merge 3 commits into
Open
Conversation
- Add /setting slash command with GUI interface - Add new configuration options for reasoning, sound, theme, etc - Add runtime validation for enum config values Closes neovateai#386
lyw405
force-pushed
the
feat/settings-command
branch
2 times, most recently
from
November 12, 2025 09:01
784590c to
326a3a9
Compare
- Replace 'any' types with specific types (Config, string | boolean) - Fix import order according to project standards - Fix unused parameter warning by prefixing with underscore - Format code according to Biome standards
Member
|
基本功能没问题,有些功能我们还没有做,我会找时间在这个 pr 的基础上继续调整。 |
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.
改动说明
新增
/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