Skip to content

Commit 2386fff

Browse files
committed
fix: don't immediately submit html unescape settings
1 parent 4f0c545 commit 2386fff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ export const AutoApproveSettings = ({
187187
<div>
188188
<VSCodeCheckbox
189189
checked={preserveHtmlEntities}
190-
onChange={(e: any) => {
191-
setCachedStateField("preserveHtmlEntities", e.target.checked)
192-
vscode.postMessage({ type: "preserveHtmlEntities", bool: e.target.checked })
193-
}}
190+
onChange={(e: any) => setCachedStateField("preserveHtmlEntities", e.target.checked)}
194191
data-testid="preserve-html-entities-checkbox">
195192
<span className="font-medium">{t("settings:advanced.preserveHtmlEntities.label")}</span>
196193
</VSCodeCheckbox>

0 commit comments

Comments
 (0)