adds Clean Copy Support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user