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:
Pierre Jacquier
2025-04-24 19:02:18 -04:00
committed by GitHub
parent bd1e68a4c8
commit 6001b71f06
9 changed files with 178 additions and 5 deletions

View File

@ -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}
/>
</>