✨ feat(vscode): 设置面板可配置 Claude profiles 目录并修正探测顺序
This commit is contained in:
@@ -179,6 +179,11 @@ export interface Settings {
|
||||
* 用 codex 默认。合法值 minimal/low/medium/high/xhigh。
|
||||
*/
|
||||
codexReasoningEffort: string
|
||||
/**
|
||||
* Claude `--settings` profile 所在目录。空串 = 自动探测。
|
||||
* 支持前导 `~`。保存后 listClaudeProfiles / getDefaultProfilePath 都从这里读。
|
||||
*/
|
||||
profilesDirectory: string
|
||||
}
|
||||
|
||||
export const SETTINGS_KEY = 'superpowers.settings'
|
||||
@@ -206,6 +211,7 @@ function defaults(ctx: ExtensionContext): Settings {
|
||||
conflictResolutionProfilePath: '',
|
||||
codexModel: '',
|
||||
codexReasoningEffort: '',
|
||||
profilesDirectory: '',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,6 +303,10 @@ export function getSettings(ctx: ExtensionContext): Settings {
|
||||
const codexReasoningEffort = typeof stored.codexReasoningEffort === 'string'
|
||||
? stored.codexReasoningEffort
|
||||
: base.codexReasoningEffort
|
||||
// profiles 目录:'' 有意义(= 自动探测),不强制回退。
|
||||
const profilesDirectory = typeof stored.profilesDirectory === 'string'
|
||||
? stored.profilesDirectory
|
||||
: base.profilesDirectory
|
||||
|
||||
return {
|
||||
webhookPort,
|
||||
@@ -320,6 +330,7 @@ export function getSettings(ctx: ExtensionContext): Settings {
|
||||
conflictResolutionProfilePath,
|
||||
codexModel,
|
||||
codexReasoningEffort,
|
||||
profilesDirectory,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user