fix: D2 module renderer missing direct module-to-module edges from project deps
This commit is contained in:
@@ -117,6 +117,14 @@ fn render_module(graph: &CodeGraph) -> String {
|
||||
if rel.kind() == RelationshipKind::Import {
|
||||
continue;
|
||||
}
|
||||
// Direct module-to-module edge (from merged project deps)
|
||||
if modules.contains(rel.source())
|
||||
&& modules.contains(rel.target())
|
||||
&& rel.source() != rel.target()
|
||||
{
|
||||
edges.insert((rel.source().to_string(), rel.target().to_string()));
|
||||
continue;
|
||||
}
|
||||
let src_mod = name_to_module.get(rel.source());
|
||||
let tgt_mod = name_to_module.get(rel.target());
|
||||
if let (Some(s), Some(t)) = (src_mod, tgt_mod)
|
||||
|
||||
Reference in New Issue
Block a user