Skip to content

Commit 41bf1c5

Browse files
committed
Bugfix: input, outputs, viewchilds, etc. are now shown correctly in the dependency injection graph.
1 parent 2d29cfe commit 41bf1c5

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## Version 1.7.1
4+
5+
- Bugfix: input, outputs, viewchilds, etc. are now shown correctly in the dependency injection graph.
6+
37
## Version 1.7.0
48

59
- All three graph types: Dependency injection graph, module hierarchy graph and component hierarchy graph can now be saved as a dgml file.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "AngularTools",
55
"description": "AngularTools is a collection of tools for exploring an Angular project, help you with documenting, reverse engineering a project or help when refactoring.",
66
"icon": "logo.png",
7-
"version": "1.7.0",
7+
"version": "1.7.1",
88
"license": "MIT",
99
"repository": "https://github.com/CoderAllan/vscode-angulartools",
1010
"author": {

src/commands/generateDependencyInjectionGraph.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,27 @@ export class GenerateDependencyInjectionGraph extends ShowHierarchyBase {
6262
let nodeContent: string = '';
6363
nodeContent = `<b>${component.name}</b>`;
6464
if(component.inputs.length > 0) {
65-
const inputs = component.inputs.join(", ");
65+
const inputs = component.inputs.map(i => i.name).join(", ");
6666
nodeContent += `\\n<b>Inputs:</b> ${inputs}`;
6767
}
6868
if(component.outputs.length > 0) {
69-
const outputs = component.outputs.join(", ");
69+
const outputs = component.outputs.map(i => i.name).join(", ");
7070
nodeContent += `\\n<b>Outputs:</b> ${outputs}`;
7171
}
7272
if(component.viewchilds.length > 0) {
73-
const viewchilds = component.viewchilds.join(", ");
73+
const viewchilds = component.viewchilds.map(i => i.name).join(", ");
7474
nodeContent += `\\n<b>Viewchilds:</b> ${viewchilds}`;
7575
}
7676
if(component.viewchildren.length > 0) {
77-
const viewchildren = component.viewchildren.join(", ");
77+
const viewchildren = component.viewchildren.map(i => i.name).join(", ");
7878
nodeContent += `\\n<b>Viewchildren:</b> ${viewchildren}`;
7979
}
8080
if(component.contentchilds.length > 0) {
81-
const contentchilds = component.contentchilds.join(", ");
81+
const contentchilds = component.contentchilds.map(i => i.name).join(", ");
8282
nodeContent += `\\n<b>Contentchilds:</b> ${contentchilds}`;
8383
}
8484
if(component.contentchildren.length > 0) {
85-
const contentchildren = component.contentchildren.join(", ");
85+
const contentchildren = component.contentchildren.map(i => i.name).join(", ");
8686
nodeContent += `\\n<b>Contentchildren:</b> ${contentchildren}`;
8787
}
8888
return nodeContent;

0 commit comments

Comments
 (0)