mirror of https://gitlab.com/basile.b/dexed.git
fix, dub projects, "sourcePath" not tried in subPackages objects
This commit is contained in:
parent
cf93e0d9e6
commit
60f9e4e984
|
@ -1,9 +1,13 @@
|
||||||
# v3.9.22-dev
|
# v3.9.23-dev
|
||||||
|
|
||||||
## Enhancements
|
## Enhancements
|
||||||
|
|
||||||
- GDB Commander, center editor view after double click on the call stack.
|
- GDB Commander, center editor view after double click on the call stack.
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- fix, dub projects, "sourcePath" not tried in the "subPackages".
|
||||||
|
|
||||||
# v3.9.22
|
# v3.9.22
|
||||||
|
|
||||||
## Enhancements
|
## Enhancements
|
||||||
|
|
|
@ -1379,6 +1379,22 @@ begin
|
||||||
fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, abs)));
|
fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, abs)));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
procedure tryFromCustomPath(o: TJSONObject);
|
||||||
|
var
|
||||||
|
i: integer;
|
||||||
|
a: TJSONArray;
|
||||||
|
p: string;
|
||||||
|
begin
|
||||||
|
if o.findArray('sourcePaths', a) then
|
||||||
|
for i := 0 to a.Count-1 do
|
||||||
|
begin
|
||||||
|
p := TrimRightSet(a.Strings[i], ['/','\']);
|
||||||
|
if p.dirExists and FilenameIsAbsolute(p) then
|
||||||
|
tryAddFromFolder(p)
|
||||||
|
else
|
||||||
|
tryAddFromFolder(expandFilenameEx(fBasePath, p));
|
||||||
|
end;
|
||||||
|
end;
|
||||||
procedure trySubpPackages(a: TJSONArray);
|
procedure trySubpPackages(a: TJSONArray);
|
||||||
var
|
var
|
||||||
n: TJSONData;
|
n: TJSONData;
|
||||||
|
@ -1396,6 +1412,7 @@ begin
|
||||||
o := a.Objects[i];
|
o := a.Objects[i];
|
||||||
if o.findAny('name', n) then
|
if o.findAny('name', n) then
|
||||||
tryAddFromFolder(fBasePath + n.AsString);
|
tryAddFromFolder(fBasePath + n.AsString);
|
||||||
|
tryFromCustomPath(o);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -1449,15 +1466,7 @@ begin
|
||||||
fSrcs.Add(patchPlateformPath(pth));
|
fSrcs.Add(patchPlateformPath(pth));
|
||||||
end;
|
end;
|
||||||
// custom folders in current config
|
// custom folders in current config
|
||||||
if conf.findArray('sourcePaths', arr) then
|
tryFromCustomPath(conf);
|
||||||
for i := 0 to arr.Count-1 do
|
|
||||||
begin
|
|
||||||
pth := TrimRightSet(arr.Strings[i], ['/','\']);
|
|
||||||
if pth.dirExists and FilenameIsAbsolute(pth) then
|
|
||||||
tryAddFromFolder(pth)
|
|
||||||
else
|
|
||||||
tryAddFromFolder(expandFilenameEx(fBasePath, pth));
|
|
||||||
end;
|
|
||||||
// subpackages
|
// subpackages
|
||||||
if conf.findArray('subPackages', arr) then
|
if conf.findArray('subPackages', arr) then
|
||||||
trySubpPackages(arr);
|
trySubpPackages(arr);
|
||||||
|
|
Loading…
Reference in New Issue