Language server 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.
Click a symbol in a file's code, and its language server will automatically turn on.
- For a function, it finds where the function is defined, everywhere it is used, the functions that call it and the ones it calls.
- For a type, it finds its definition, what implements it, and the types it extends or that extend it.
- For a variable, it finds its type and its uses.
Each answer is an edge from the symbol to that place, in its own colour. Edges to the functions a function calls start at the calls instead, one from each call in its body. lists them.
A place can be inside a closed folder. Its file then shows through the folder as a dotted outline with its name, and the edge goes to it there. Open the folder to see the file's code.
Clicking another symbol clears the answers for the one before. Hold Shift while you click to add more symbols to the selection. Press Esc, or click anywhere away from a symbol, to deselect them all. If you deselect everything, or select something by accident, press Cmd+Z to undo.
In Selected symbols, keeps the canvas to the files the symbols reach. While it is on, the folders holding those files stay open. Folders you closed close again when you turn it off. choose which kinds of answer show, and how strongly. Each kind shows how many of it are on the canvas.
Under Names, each symbol lists its answers by kind. Each answer has a tick. Untick an answer to take its edge off the canvas. While only connected files show, its file goes too, unless another answer reaches it. The tick beside the name of a kind switches all of its answers on or off.
To keep two of twelve outgoing calls, untick Outgoing calls, then tick the two you want. Or point at one of them and click Only. That unticks the rest of its kind.
Point at a function that calls the symbol, or one that it calls, and click Ask. Its own answers join the selection, as if you had held Shift and clicked its name. So you can follow a chain of calls one function at a time. At each step, keep only the calls that matter.
While Show only connected files is on, appears under it. It folds every line that no answer lights up. What stays is each symbol, the functions that call it or that it calls, and the lines that use it. Click a fold to open it.
While symbols are selected, each of these two options has a notice at the bottom right of the canvas. Click its × to turn the option off.
Only the files the selected symbols reach stay on the canvas, laid out alone.
In the app:
While only connected files show, folds every line of their cards that no answer lights, as Changes folds unchanged lines: what stays is each symbol's declaration, the functions calling it or called by it, and the lines using it. Click a fold to open it.
In the app:
Which kinds of a symbol's places show (definitions, uses, implementations, types, calls), and how opaque.
In the app:
As a click on a symbol does: its places light up and are listed in Selected symbols. Waits for the answer and returns it, as symbols:answers gives a name. Give path, line and column, or at. The file's folder must be shown as code; its language server starts if it is not running.
In the app:
Every name selected, newest first: where it is (at, PATH:LINE:COLUMN), what it is, and its places by kind (definition, reference, caller, callee and the rest), each a line: PATH:LINE:COLUMN, the line's text, its lines and where it is called, (off) first if switched off. Paths are inside root. A caller or callee can be asked about in turn: symbols:ask with its at and add.
In the app:
Keeps places of the names selected on the canvas or leaves them out, one by one or a kind at a time: two of twelve callers kept, ten of twelve outgoing calls dropped. A place left out loses its edge, and with only connected files on, its file goes unless something else reaches it. Returns how many changed.
In the app:
Takes a name out of those selected, with its places, as its × in Selected symbols does.
In the app: