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

@ -194,6 +194,14 @@ export const FileMachineProvider = ({
navigate(`..${PATHS.FILE}/${encodeURIComponent(event.output.path)}`)
}
},
openFileInNewWindow: ({ event }) => {
if (event.type !== 'Open file in new window') {
return
}
commandBarActor.send({ type: 'Close' })
window.electron.openInNewWindow(event.data.name)
},
},
actors: {
readFiles: fromPromise(async ({ input }) => {