Skip to content

Commit 66055f1

Browse files
committed
Fix issue where MCP toggle turns off other checkboxes
1 parent 5f3ace4 commit 66055f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
445445
<div style={{ marginBottom: 5 }}>
446446
<VSCodeCheckbox
447447
checked={alwaysAllowMcp}
448-
onChange={(e: any) => {
449-
setAlwaysAllowMcp(e.target.checked)
450-
vscode.postMessage({ type: "alwaysAllowMcp", bool: e.target.checked })
451-
}}>
448+
onChange={(e: any) => setAlwaysAllowMcp(e.target.checked)}>
452449
<span style={{ fontWeight: "500" }}>Always approve MCP tools</span>
453450
</VSCodeCheckbox>
454451
<p style={{ fontSize: "12px", marginTop: "5px", color: "var(--vscode-descriptionForeground)" }}>

0 commit comments

Comments
 (0)