✨ feat(vscode): 改动说明 profile 可配置

This commit is contained in:
cruldra committed 2026-08-28 06:38:02 +08:00
1 parent 77037924ef
commit 443a8e472a
14 files changed
+137 -37

No files matched your search

+1 -15
View File
@@ -37,7 +37,7 @@ let profilesDirOverride: string | undefined
*/
export function setProfilesDirOverride(dir: string | undefined): void {
const t = dir?.trim()
profilesDirOverride = t ? t : undefined
profilesDirOverride = t || undefined
}
function isReadableDir(dir: string): boolean {
@@ -144,17 +144,3 @@ export function getDefaultProfilePath(): string {
}
return path.join(dir, 'offical.json')
}
/**
* Profile for PR diff summaries / background content generation.
* Prefer `deepseek-v4-pro`, then `deepseek.json`.
*/
export function getPrDiffSummaryProfilePath(): string {
const dir = getProfilesDir()
for (const name of ['deepseek-v4-pro.json', 'deepseek.json']) {
const p = path.join(dir, name)
if (isReadableFile(p))
return p
}
return path.join(dir, 'deepseek-v4-pro.json')
}