adds schema view and schema generating command

This commit is contained in:
2026-11-03 09:35:41 +01:00
parent cc41decccb
commit 600d4874d2
62 changed files with 4416 additions and 105 deletions
@@ -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)