From 8982419afd561b7335e7e9b30ea42c8c40b95e58 Mon Sep 17 00:00:00 2001 From: Aditya Gajbhiye Date: Fri, 17 May 2024 15:57:50 +0100 Subject: [PATCH] fix: uri for diagnostic (#1139) --- src/dbt_client/dbtCoreIntegration.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dbt_client/dbtCoreIntegration.ts b/src/dbt_client/dbtCoreIntegration.ts index 3f7c7a472..1e8f0a831 100644 --- a/src/dbt_client/dbtCoreIntegration.ts +++ b/src/dbt_client/dbtCoreIntegration.ts @@ -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) || []), ]; }