fix, completion broken if dependency specified using a path DUB property

This commit is contained in:
Basile Burg 2023-07-06 20:16:48 +02:00
parent f06ad0ad8c
commit 75ed028f58
1 changed files with 2 additions and 2 deletions

View File

@ -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);