Skip to content

Conversation

@lyw405
Copy link

@lyw405 lyw405 commented Nov 12, 2025

改动说明

新增 /setting 命令,提供GUI配置界面,方便通过交互式菜单修改配置。

主要变更

1. 新增 /setting 命令 (598行)

  • 分类菜单:Model & Reasoning、Preferences、Integrations
  • 支持ESC返回上级菜单
  • 保存后自动刷新配置

2. 新增配置项

config.ts 中添加8个配置项:

  • reasoningLevel: 推理级别 (disabled/low/medium/high)
  • completionSound: 完成提示音
  • playSounds: 播放时机 (always/when-focused/when-unfocused)
  • showTips: 是否显示提示
  • diffDisplayMode: Diff显示模式 (github/unified)
  • respectGitignore: 文件选择器是否尊重 .gitignore
  • theme: 主题 (dark/light)
  • autoConnectIDE: 是否自动连接IDE

3. 配置验证机制

新增 ENUM_CONFIG_KEYS 常量,为枚举配置提供运行时验证:

  • setConfig 时检查值是否有效
  • 包含 approvalModeoutputFormat 等已有枚举的验证
  • 提供清晰的错误提示

测试

  • TypeScript类型检查通过
  • 代码格式化通过
  • 与上游master分支同步

Closes #386

- 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 lyw405 force-pushed the feat/settings-command branch 2 times, most recently from 784590c to 326a3a9 Compare November 12, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add /setting

1 participant