Skip to content

Commit b99beba

Browse files
committed
We don't need no toast for this
1 parent 68ab72c commit b99beba

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/activate/registerCommands.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,6 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
229229
const currentState = context.globalState.get<boolean>("autoApprovalEnabled") ?? false
230230
const newState = !currentState
231231
await context.globalState.update("autoApprovalEnabled", newState)
232-
233-
// Show notification even without visible provider
234-
const message = newState ? t("notification.autoApprove.enabled") : t("notification.autoApprove.disabled")
235-
vscode.window.showInformationMessage(message)
236232
return
237233
}
238234

@@ -248,10 +244,6 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
248244
type: "action",
249245
action: "toggleAutoApprove",
250246
})
251-
252-
// Show toast notification
253-
const message = newState ? t("notification.autoApprove.enabled") : t("notification.autoApprove.disabled")
254-
vscode.window.showInformationMessage(message)
255247
},
256248
})
257249

webview-ui/src/components/chat/AutoApproveDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }:
298298
handleAutoApprovalToggle()
299299
}}>
300300
<StandardTooltip content={`${t("chat:autoApprove.toggle")} (${getAutoApproveShortcut()})`}>
301-
<span>
301+
<span className="flex items-center gap-2">
302302
<ToggleSwitch
303303
checked={effectiveAutoApprovalEnabled}
304304
aria-label="Toggle auto-approval"

0 commit comments

Comments
 (0)