This extension scans the Salesforce metadata and code stored in /force-app/main/default to extract class/method names and find dependencies between them then opens a dependency graph in an HTML page using Mermaid JS.
This extension will open a dependency graph for the selected type of element.
Activate with Ctrl + Shift + P or right click a folder or file then select one of the "Dependency graph..." options.
Dependency graph for Aura components
Dependency graph for Apex Classes
Dependency graph for Lightning Web Components
Dependency graph from the right click context menu
The metadata must have been downloaded and available in the folder /force-app/main/default using "SFDX: Retrieve Source from Org".
This extension has no settings to configure.
Sometimes when you open the same graph twice in a row, the graph is displayed slightly different. This seems to be related to the sort order.
Fixed handling of folder names in Windows appearing as ///c%3a
Fixed handling of folder names with spaces
Better detection of non-method references, refactoring and new tests
Enhanced the seeking of dependencies when an item is right-clicked
Bug fix for Windows version
Enhanced code that parses method calls to work better with Mermaid JS
New icon, dependency graph for single item now includes "grandparents" and "grandchildren" dependencies, adjusted compatibility with VSCode 1.60 and later versions
Increased maximum number of dependencies and added context menu items and ability to display the graph for only one item with all its dependencies
Replaced the Node "open" package - it sometimes does not get installed properly for some reason
Added issue reporting GitHub template
Initial release of Dependency Graph for Salesforce