✨ feat(vscode): 问 AI 和重写注释各用各的 profile,设置里加重写注释默认模型

This commit is contained in:
cruldra committed 2026-10-12 16:30:41 +11:00
1 parent 925f1ed39a
commit b83c445dd0
25 files changed
+363 -111

No files matched your search

+2
View File
@@ -1076,6 +1076,7 @@ export class KanbanWebviewPanel {
defaultTestProfilePath: s.defaultTestProfilePath,
defaultPrototypeProfilePath: s.defaultPrototypeProfilePath,
defaultAskProfilePath: s.defaultAskProfilePath,
defaultRewriteProfilePath: s.defaultRewriteProfilePath,
conflictResolutionProfilePath: s.conflictResolutionProfilePath,
commitProfilePath: await getEffectiveCommitProfilePath(this.context),
prDiffSummaryProfilePath: await getEffectivePrDiffSummaryProfilePath(this.context),
@@ -1170,6 +1171,7 @@ export class KanbanWebviewPanel {
defaultTestProfilePath: s.defaultTestProfilePath,
defaultPrototypeProfilePath: s.defaultPrototypeProfilePath,
defaultAskProfilePath: s.defaultAskProfilePath,
defaultRewriteProfilePath: s.defaultRewriteProfilePath,
conflictResolutionProfilePath: s.conflictResolutionProfilePath,
commitProfilePath: await getEffectiveCommitProfilePath(this.context),
prDiffSummaryProfilePath: await getEffectivePrDiffSummaryProfilePath(this.context),
+5
View File
@@ -46,6 +46,7 @@ export async function handleSettingsSave(panel: KanbanWebviewPanel, payload: {
defaultTestProfilePath: string
defaultPrototypeProfilePath: string
defaultAskProfilePath: string
defaultRewriteProfilePath: string
conflictResolutionProfilePath: string
commitProfilePath: string
prDiffSummaryProfilePath: string
@@ -87,6 +88,7 @@ export async function handleSettingsSave(panel: KanbanWebviewPanel, payload: {
const trimmedDefaultTestProfile = payload.defaultTestProfilePath.trim()
const trimmedDefaultPrototypeProfile = payload.defaultPrototypeProfilePath.trim()
const trimmedDefaultAskProfile = payload.defaultAskProfilePath.trim()
const trimmedDefaultRewriteProfile = payload.defaultRewriteProfilePath.trim()
// conflict-resolution profile: '' is meaningful (= DEFAULT_PROFILE_PATH).
const trimmedConflictProfile = payload.conflictResolutionProfilePath.trim()
// 提交代码 profile:'' 有意义(= 未配置 → 提交严格失败),只 trim。
@@ -137,6 +139,7 @@ export async function handleSettingsSave(panel: KanbanWebviewPanel, payload: {
defaultTestProfilePath: trimmedDefaultTestProfile,
defaultPrototypeProfilePath: trimmedDefaultPrototypeProfile,
defaultAskProfilePath: trimmedDefaultAskProfile,
defaultRewriteProfilePath: trimmedDefaultRewriteProfile,
conflictResolutionProfilePath: trimmedConflictProfile,
commitProfilePath: trimmedCommitProfile,
prDiffSummaryProfilePath: trimmedPrDiffSummaryProfile,
@@ -172,6 +175,7 @@ export async function handleSettingsSave(panel: KanbanWebviewPanel, payload: {
defaultTestProfilePath: trimmedDefaultTestProfile,
defaultPrototypeProfilePath: trimmedDefaultPrototypeProfile,
defaultAskProfilePath: trimmedDefaultAskProfile,
defaultRewriteProfilePath: trimmedDefaultRewriteProfile,
conflictResolutionProfilePath: trimmedConflictProfile,
commitProfilePath: trimmedCommitProfile,
prDiffSummaryProfilePath: trimmedPrDiffSummaryProfile,
@@ -282,6 +286,7 @@ export async function handleEditSettingsRequest(panel: KanbanWebviewPanel): Prom
defaultTestProfilePath: s.defaultTestProfilePath,
defaultPrototypeProfilePath: s.defaultPrototypeProfilePath,
defaultAskProfilePath: s.defaultAskProfilePath,
defaultRewriteProfilePath: s.defaultRewriteProfilePath,
conflictResolutionProfilePath: s.conflictResolutionProfilePath,
commitProfilePath,
prDiffSummaryProfilePath,
+2
View File
@@ -96,6 +96,7 @@ export type ExtensionToWebview
defaultTestProfilePath: string
defaultPrototypeProfilePath: string
defaultAskProfilePath: string
defaultRewriteProfilePath: string
conflictResolutionProfilePath: string
commitProfilePath: string
prDiffSummaryProfilePath: string
@@ -182,6 +183,7 @@ export type WebviewToExtension
defaultTestProfilePath: string
defaultPrototypeProfilePath: string
defaultAskProfilePath: string
defaultRewriteProfilePath: string
conflictResolutionProfilePath: string
commitProfilePath: string
prDiffSummaryProfilePath: string