adds schema view and schema generating command
This commit is contained in:
@@ -67,6 +67,9 @@ extension WorkspaceModel {
|
||||
self.editor = editor
|
||||
|
||||
cleanCopy = CleanCopyStore(files: services.files)
|
||||
let schema = SchemaStore(service: services.schema, layouts: app.schemaLayouts, root: root.path)
|
||||
schema.notify = notify
|
||||
self.schema = schema
|
||||
terminal = TerminalStore(projectRoot: root.path)
|
||||
wireTerminal()
|
||||
launcher = LauncherList(recents: recentProjects, excluding: root.path)
|
||||
@@ -98,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, editor = editor, cleanCopy = cleanCopy
|
||||
let sourceControl = sourceControl, explorer = explorer, editor = editor, cleanCopy = cleanCopy, schema = schema
|
||||
async let git: Void = sourceControl?.refresh() ?? ()
|
||||
async let tree: Void = explorer?.reload() ?? ()
|
||||
async let baseline: Void = cleanCopy?.loadBaseline() ?? ()
|
||||
_ = await (git, tree, baseline)
|
||||
async let laravel: Void = schema?.check() ?? ()
|
||||
_ = await (git, tree, baseline, laravel)
|
||||
await editor?.restore(restoreSession: config.session.restoreOnLaunch)
|
||||
guard generation == current else { return }
|
||||
startWatcher(root)
|
||||
|
||||
Reference in New Issue
Block a user