You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve project context for untitled query files (#1827)
Untitled files created via 'New query' or manually silently failed to
execute or compile because the selected project was never persisted to
workspace state, and executeSQL/compileQuery could not resolve untitled
URIs to a dbt project.
Changes:
- createSqlFile now stores the selected project in workspace state
- Extract resolveProjectUri() helper with safe Uri reconstruction from
deserialized workspace state; apply to both executeSQL and compileQuery
- Add ensureProjectForUntitledUri() fallback in RunModel that validates
stored project still exists (clears stale state) and falls back to
getOrPickProjectFromWorkspace for untitled files not created via
createSqlFile
- Extract toProjectQuickPickItem() to eliminate duplicated shape across
3 call sites
- Invalidate dbtPowerUser.projectSelected when a project is unregistered
- Use clean 'untitled' modelName instead of raw fsPath for untitled URIs
- Wire QueryManifestService into RunModel via DI
Fixes#1827
0 commit comments