From e73d226dbabf05e9ddcd37bcbdfb78e48c8885c3 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 15 Jul 2022 05:04:45 +0200 Subject: [PATCH] better dcd completion if receipt us subpackage-oriented --- src/u_dubproject.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/u_dubproject.pas b/src/u_dubproject.pas index 3bb0f28d..8a41f550 100644 --- a/src/u_dubproject.pas +++ b/src/u_dubproject.pas @@ -1374,6 +1374,8 @@ begin begin lst.Clear; listFiles(lst, pth, true); + if lst.Count > 0 then + fImportPaths.Add(pth); for abs in lst do if isDlangCompilable(abs.extractFileExt) then fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, abs))); @@ -1884,9 +1886,9 @@ procedure TDubProject.updateFields; begin updatePackageNameFromJson; udpateConfigsFromJson; + updateImportPathsFromJson; updateSourcesFromJson; updateTargetKindFromJson; - updateImportPathsFromJson; updateOutputNameFromJson; end;