@@ -22,6 +22,7 @@ import {
2222 Globe ,
2323 Info ,
2424 MessageSquare ,
25+ Monitor ,
2526 LucideIcon ,
2627} from "lucide-react"
2728
@@ -88,6 +89,7 @@ const sectionNames = [
8889 "prompts" ,
8990 "experimental" ,
9091 "language" ,
92+ "ui" ,
9193 "about" ,
9294] as const
9395
@@ -315,6 +317,10 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
315317 vscode . postMessage ( { type : "upsertApiConfiguration" , text : currentApiConfigName , apiConfiguration } )
316318 vscode . postMessage ( { type : "telemetrySetting" , text : telemetrySetting } )
317319 vscode . postMessage ( { type : "codebaseIndexConfig" , values : codebaseIndexConfig } )
320+ vscode . postMessage ( {
321+ type : "hideTaskAndAutoApproveBoxes" ,
322+ bool : cachedState . hideTaskAndAutoApproveBoxes ?? false ,
323+ } )
318324 setChangeDetected ( false )
319325 }
320326 }
@@ -394,6 +400,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
394400 { id : "prompts" , icon : MessageSquare } ,
395401 { id : "experimental" , icon : FlaskConical } ,
396402 { id : "language" , icon : Globe } ,
403+ { id : "ui" , icon : Monitor } ,
397404 { id : "about" , icon : Info } ,
398405 ] ,
399406 [ ] , // No dependencies needed now
@@ -692,6 +699,41 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
692699 < LanguageSettings language = { language || "en" } setCachedStateField = { setCachedStateField } />
693700 ) }
694701
702+ { /* UI Section */ }
703+ { activeTab === "ui" && (
704+ < div >
705+ < SectionHeader >
706+ < div className = "flex items-center gap-2" >
707+ < Monitor className = "w-4" />
708+ < div > { t ( "settings:sections.ui" ) } </ div >
709+ </ div >
710+ </ SectionHeader >
711+
712+ < Section >
713+ < div className = "space-y-4" >
714+ < div className = "flex items-center justify-between" >
715+ < div className = "flex flex-col" >
716+ < label className = "text-vscode-foreground font-medium" >
717+ { t ( "settings:ui.hideTaskAndAutoApproveBoxes.title" ) }
718+ </ label >
719+ < span className = "text-vscode-descriptionForeground text-sm" >
720+ { t ( "settings:ui.hideTaskAndAutoApproveBoxes.description" ) }
721+ </ span >
722+ </ div >
723+ < input
724+ type = "checkbox"
725+ checked = { cachedState . hideTaskAndAutoApproveBoxes ?? false }
726+ onChange = { ( e ) =>
727+ setCachedStateField ( "hideTaskAndAutoApproveBoxes" , e . target . checked )
728+ }
729+ className = "w-4 h-4"
730+ />
731+ </ div >
732+ </ div >
733+ </ Section >
734+ </ div >
735+ ) }
736+
695737 { /* About Section */ }
696738 { activeTab === "about" && (
697739 < About telemetrySetting = { telemetrySetting } setTelemetrySetting = { setTelemetrySetting } />
0 commit comments