mirror of https://gitlab.com/basile.b/dexed.git
fix, dub proj inspector tree empty if proj organized by subpackages
This commit is contained in:
parent
3dfad939ad
commit
8c77c2caa3
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
- diff dialog: the content reloaded matched to the state when the dialog was shown, not when closed. (#97)
|
- diff dialog: the content reloaded matched to the state when the dialog was shown, not when closed. (#97)
|
||||||
- editor, debugging: during a debugging session, wrong icon displayed when a breakpoint is removed.
|
- editor, debugging: during a debugging session, wrong icon displayed when a breakpoint is removed.
|
||||||
|
- DUB project inspector: the tree was empty if the project is moslty organized in subpackages.
|
||||||
- DUB projects: version number without the patch component were not accepted.
|
- DUB projects: version number without the patch component were not accepted.
|
||||||
|
|
||||||
# v3.9.12
|
# v3.9.12
|
||||||
|
|
|
@ -1405,6 +1405,11 @@ begin
|
||||||
if fJSON.findArray('sourceFiles', arr) then
|
if fJSON.findArray('sourceFiles', arr) then
|
||||||
for i := 0 to arr.Count-1 do
|
for i := 0 to arr.Count-1 do
|
||||||
tryAddRelOrAbsFile(arr.Strings[i]);
|
tryAddRelOrAbsFile(arr.Strings[i]);
|
||||||
|
// subpackages
|
||||||
|
if fJSON.findArray('subPackages', arr) then
|
||||||
|
for i := 0 to arr.Count-1 do
|
||||||
|
tryAddFromFolder(fBasePath + arr.Strings[i]);
|
||||||
|
// by config
|
||||||
conf := getCurrentCustomConfig;
|
conf := getCurrentCustomConfig;
|
||||||
if conf.isAssigned then
|
if conf.isAssigned then
|
||||||
begin
|
begin
|
||||||
|
@ -1426,6 +1431,10 @@ begin
|
||||||
else
|
else
|
||||||
tryAddFromFolder(expandFilenameEx(fBasePath, pth));
|
tryAddFromFolder(expandFilenameEx(fBasePath, pth));
|
||||||
end;
|
end;
|
||||||
|
// subpackages
|
||||||
|
if conf.findArray('subPackages', arr) then
|
||||||
|
for i := 0 to arr.Count-1 do
|
||||||
|
tryAddFromFolder(fBasePath + arr.Strings[i]);
|
||||||
// custom files in current config
|
// custom files in current config
|
||||||
if conf.findArray('sourceFiles', arr) then
|
if conf.findArray('sourceFiles', arr) then
|
||||||
for i := 0 to arr.Count-1 do
|
for i := 0 to arr.Count-1 do
|
||||||
|
|
Loading…
Reference in New Issue