Skip to content

Commit

Permalink
fix: uri for diagnostic (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye authored May 17, 2024
1 parent 2a9db5e commit 8982419
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 8982419

Please sign in to comment.