Skip to content

Commit

Permalink
fix: uri for diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye committed May 17, 2024
1 parent 2a9db5e commit 99201f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/dbt_client/dbtCoreIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,14 @@ export class DBTCoreProjectIntegration
}

getAllDiagnostic(): Diagnostic[] {
const projectURI = Uri.joinPath(
this.projectRoot,
DBTProject.DBT_PROJECT_FILE,
);
return [
...(this.pythonBridgeDiagnostics.get(this.projectRoot) || []),
...(this.projectConfigDiagnostics.get(this.projectRoot) || []),
...(this.rebuildManifestDiagnostics.get(this.projectRoot) || []),
...(this.pythonBridgeDiagnostics.get(projectURI) || []),
...(this.projectConfigDiagnostics.get(projectURI) || []),
...(this.rebuildManifestDiagnostics.get(projectURI) || []),
];
}

Expand Down

0 comments on commit 99201f8

Please sign in to comment.