Add Open in New Window and reexecution on import change (#6379)
* Quick prototype: open in new window in file tree * WIP: refresh on imported file change * Fix up reexecution * Clean up * Add test 'Assembly gets reexecuted when imported models are updated externally' * Clean up
This commit is contained in:
@ -132,8 +132,13 @@ export const sidebarPanes: SidebarPane[] = [
|
||||
icon: 'folder',
|
||||
sidebarName: 'Project Files',
|
||||
Content: (props: { id: SidebarType; onClose: () => void }) => {
|
||||
const { createFile, createFolder, cloneFileOrDir, newTreeEntry } =
|
||||
useFileTreeOperations()
|
||||
const {
|
||||
createFile,
|
||||
createFolder,
|
||||
cloneFileOrDir,
|
||||
openInNewWindow,
|
||||
newTreeEntry,
|
||||
} = useFileTreeOperations()
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -155,6 +160,7 @@ export const sidebarPanes: SidebarPane[] = [
|
||||
createFolder({ dryRun: false, name })
|
||||
}
|
||||
onCloneFileOrFolder={(path: string) => cloneFileOrDir({ path })}
|
||||
onOpenInNewWindow={(path: string) => openInNewWindow({ path })}
|
||||
newTreeEntry={newTreeEntry}
|
||||
/>
|
||||
</>
|
||||
|
Reference in New Issue
Block a user