Fixes to the auto approve menu

This commit is contained in:
Matt Rubens
2025-01-16 03:37:23 -05:00
parent 6e3919f5e2
commit ee344facda
8 changed files with 56 additions and 118 deletions

View File

@@ -98,6 +98,7 @@ type GlobalStateKey =
| "modeApiConfigs"
| "customPrompts"
| "enhancementApiConfigId"
| "autoApprovalEnabled"
export const GlobalFileNames = {
apiConversationHistory: "api_conversation_history.json",
@@ -875,6 +876,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
await this.updateGlobalState("enhancementApiConfigId", message.text)
await this.postStateToWebview()
break
case "autoApprovalEnabled":
await this.updateGlobalState("autoApprovalEnabled", message.bool)
await this.postStateToWebview()
break
case "enhancePrompt":
if (message.text) {
try {