adds Clean Copy Support

This commit is contained in:
2026-10-12 09:43:57 +02:00
parent 188e078055
commit 281f5465a6
28 changed files with 579 additions and 120 deletions
@@ -69,6 +69,7 @@ extension WorkspaceModel {
let note = NoteStore(notes: services.notes)
note.notify = notify
self.note = note
cleanCopy = CleanCopyStore(files: services.files)
terminal = TerminalStore(projectRoot: root.path)
wireTerminal()
launcher = LauncherList(recents: recentProjects, excluding: root.path)
@@ -100,11 +101,12 @@ extension WorkspaceModel {
recentProjects = await app.recentProjects.list()
guard generation == current else { return }
launcher = LauncherList(recents: recentProjects, excluding: root.path)
let sourceControl = sourceControl, explorer = explorer, note = note, editor = editor
let sourceControl = sourceControl, explorer = explorer, note = note, editor = editor, cleanCopy = cleanCopy
async let git: Void = sourceControl?.refresh() ?? ()
async let tree: Void = explorer?.reload() ?? ()
async let loaded: Void = note?.load() ?? ()
_ = await (git, tree, loaded)
async let baseline: Void = cleanCopy?.loadBaseline() ?? ()
_ = await (git, tree, loaded, baseline)
await editor?.restore(restoreSession: config.session.restoreOnLaunch)
guard generation == current else { return }
startWatcher(root)