Sometimes, the graph is a bit too big for the VSCode extension to export it properly. It is easier to generate the graph from the command line and save it as an SVG file. Make a script, or support it in the tool itself, to generate the plantuml graph from the CLI with the plantuml jar file.
You can look into the github action workflow for more insights on how to do it.
Depends on #8