From 75ed028f584dac76d347ea1a0b5dfd4058c7e267 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 6 Jul 2023 20:16:48 +0200 Subject: [PATCH] fix, completion broken if dependency specified using a path DUB property --- src/u_dubproject.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/u_dubproject.pas b/src/u_dubproject.pas index 094d2175..3295a85b 100644 --- a/src/u_dubproject.pas +++ b/src/u_dubproject.pas @@ -1678,9 +1678,9 @@ procedure TDubProject.updateImportPathsFromJson; s += w; // as auto detected by DUB if (s + 'source').dirExists then - fImportPaths.Add(s) + fImportPaths.Add(s + 'source') else if (s + 'src').dirExists then - fImportPaths.Add(s) + fImportPaths.Add(s + 'src') // when standard src content is directly in the repo root else if (s + n).dirExists or (w.length <> 0) then fImportPaths.Add(s);