beicause / call-graph

Generate call graph for vscode in svg or graphviz dot.
Apache License 2.0
73 stars 17 forks source link

Roadmap #24

Open beicause opened 1 month ago

beicause commented 1 month ago

Current features of this extension is stable. Here are further works that I consider:

Mermaid is popular and supports theming. Its digrams are more beatiful than graphviz. However it seems heavily depend DOM and have bug to export SVG. I decide to keep graphviz.

Currently the graphviz generator is not parallel and can be improved. Or rewrite the generator with native language. The second improvement may be limited, because the performance of language servers (depending on their own implementation) is a bottleneck, but we can render SVG in native instead of rendering in vscode webview with d3-graphviz(wasm).

jotavemonte commented 1 month ago

@beicause Regarding "Make graph nicer." I'm exploring the idea of intercepting and editing the output svg to reflect the vscode theme colors.

I had success intercepting and editing the SVG as you can see in the image, but I'll still take a look on vscode API to check how to get the color palette from from the user's theme. Let me know what you think

jotavemonte commented 1 month ago

@beicause hey I have a PR with the change that adapts the graph colors to match the active vscode's theme #26