@@ -4,7 +4,7 @@ import type { Worktree } from "@roo-code/types"
44
55import { vscode } from "@/utils/vscode"
66import { useAppTranslation } from "@/i18n/TranslationContext"
7- import { Dialog , DialogContent , DialogFooter , DialogHeader , DialogTitle , Button , Checkbox } from "@/components/ui"
7+ import { Dialog , DialogContent , DialogFooter , DialogHeader , DialogTitle , Button } from "@/components/ui"
88import { Folder , GitBranch , TriangleAlert } from "lucide-react"
99
1010interface DeleteWorktreeModalProps {
@@ -18,7 +18,6 @@ export const DeleteWorktreeModal = ({ open, onClose, worktree, onSuccess }: Dele
1818 const { t } = useAppTranslation ( )
1919
2020 const [ isDeleting , setIsDeleting ] = useState ( false )
21- const [ forceDelete , setForceDelete ] = useState ( true )
2221 const [ error , setError ] = useState < string | null > ( null )
2322
2423 useEffect ( ( ) => {
@@ -47,9 +46,9 @@ export const DeleteWorktreeModal = ({ open, onClose, worktree, onSuccess }: Dele
4746 vscode . postMessage ( {
4847 type : "deleteWorktree" ,
4948 worktreePath : worktree . path ,
50- worktreeForce : forceDelete ,
49+ worktreeForce : true ,
5150 } )
52- } , [ worktree . path , forceDelete ] )
51+ } , [ worktree . path ] )
5352
5453 return (
5554 < Dialog open = { open } onOpenChange = { ( isOpen : boolean ) => ! isOpen && onClose ( ) } >
@@ -90,23 +89,6 @@ export const DeleteWorktreeModal = ({ open, onClose, worktree, onSuccess }: Dele
9089 </ div >
9190 </ div >
9291
93- { /* Force delete option (if worktree is locked) */ }
94- { worktree . isLocked && (
95- < div className = "flex items-center gap-2" >
96- < Checkbox
97- id = "force-delete"
98- checked = { forceDelete }
99- onCheckedChange = { ( checked ) => setForceDelete ( checked === true ) }
100- />
101- < label htmlFor = "force-delete" className = "text-sm text-vscode-foreground cursor-pointer" >
102- { t ( "worktrees:forceDelete" ) }
103- < span className = "text-vscode-descriptionForeground ml-1" >
104- ({ t ( "worktrees:worktreeIsLocked" ) } )
105- </ span >
106- </ label >
107- </ div >
108- ) }
109-
11092 { /* Error message */ }
11193 { error && (
11294 < div className = "flex items-center gap-2 px-2 py-1.5 rounded bg-vscode-inputValidation-errorBackground border border-vscode-inputValidation-errorBorder text-sm" >
0 commit comments