Fix issue where MCP toggle turns off other checkboxes

This commit is contained in:
Matt Rubens
2025-01-07 23:23:26 -05:00
parent 5f3ace4379
commit 66055f10a2

View File

@@ -445,10 +445,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
<div style={{ marginBottom: 5 }}> <div style={{ marginBottom: 5 }}>
<VSCodeCheckbox <VSCodeCheckbox
checked={alwaysAllowMcp} checked={alwaysAllowMcp}
onChange={(e: any) => { onChange={(e: any) => setAlwaysAllowMcp(e.target.checked)}>
setAlwaysAllowMcp(e.target.checked)
vscode.postMessage({ type: "alwaysAllowMcp", bool: e.target.checked })
}}>
<span style={{ fontWeight: "500" }}>Always approve MCP tools</span> <span style={{ fontWeight: "500" }}>Always approve MCP tools</span>
</VSCodeCheckbox> </VSCodeCheckbox>
<p style={{ fontSize: "12px", marginTop: "5px", color: "var(--vscode-descriptionForeground)" }}> <p style={{ fontSize: "12px", marginTop: "5px", color: "var(--vscode-descriptionForeground)" }}>