Commit 7377fd9
committed
fix(builder): preserve structure data during incremental builds
buildStructure() clears all contains edges and directory nodes before
rebuilding, but during incremental builds it only received the changed
files — causing all unchanged files to lose their directory containment
edges and metrics. This made `codegraph structure` show "0 files" for
most directories after any incremental build.
Fix: before calling buildStructure, load all existing file nodes and
their symbols from the DB so the complete file set is available for
structure rebuild.
Closes #89
Impact: 1 functions changed, 0 affected1 parent 6eef6b3 commit 7377fd9
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
830 | 867 | | |
831 | 868 | | |
832 | 869 | | |
| |||
0 commit comments