Edges
This guide is also in the app, under Help › Guide. The dotted names are buttons, panels and options there: in the app, clicking one lights up its place in the window. That only works in the app.
Code Canvas draws two kinds of edges.
- Dependency edges come from reading each file's code: its imports, exports, configuration and the like. They connect every pair of files where one depends on the other. The layout follows them.
- Language server edges appear when you . A language server finds its definition, its uses and its calls. Use them to follow a path through the code.
Both connect two files, but differently. Say a.ts imports a function from b.ts and calls it in three places. There is one dependency edge, from the import in a.ts to the export in b.ts. Now click the function where b.ts defines it. The language server draws three edges, one to each place where it is called.
A layout that followed language server edges would put the files in much the same places. It would just have many more edges. So the layout follows dependency edges, and language server edges are for looking closer.