File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
apps/code/src/renderer/features/task-detail/components Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export function ExternalAppsOpener({
2020 label = "Open" ,
2121} : ExternalAppsOpenerProps ) {
2222 const { detectedApps, defaultApp, isLoading } = useExternalApps ( ) ;
23+ const [ dropdownOpen , setDropdownOpen ] = useState ( false ) ;
2324
2425 const handleOpenDefault = useCallback ( async ( ) => {
2526 if ( ! defaultApp || ! targetPath ) return ;
@@ -74,8 +75,6 @@ export function ExternalAppsOpener({
7475 [ handleCopyPath ] ,
7576 ) ;
7677
77- const [ dropdownOpen , setDropdownOpen ] = useState ( false ) ;
78-
7978 if ( ! targetPath ) {
8079 return null ;
8180 }
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ export function TaskDetail({ task: initialTask }: TaskDetailProps) {
4646 if ( ! panel ) return null ;
4747
4848 const parsed = parseTabId ( panel . content . activeTabId ) ;
49- if ( parsed . type === "file" || parsed . type === "diff" ) {
49+ if ( parsed . type === "file" ) {
5050 return parsed . value ;
5151 }
5252 return null ;
5353 } ) ;
5454
5555 const openTargetPath =
5656 activeRelativePath && effectiveRepoPath
57- ? ` ${ effectiveRepoPath } / ${ activeRelativePath } `
57+ ? [ effectiveRepoPath , activeRelativePath ] . join ( "/" ) . replace ( / \/ + / g , "/" )
5858 : effectiveRepoPath ;
5959
6060 const [ filePickerOpen , setFilePickerOpen ] = useState ( false ) ;
You can’t perform that action at this time.
0 commit comments