Documentation
¶
Overview ¶
Package references is VS Code's built-in extension "references-view" (SPEC §10.28, D30): Find All References and Find All Implementations of the symbol at the cursor, and a view in the side bar that lists the results by file, with the history of the searches. The language servers and the providers answer through Languages().References and Implementations.
Ported from VS Code: extensions/references-view/package.json, src/extension.ts, src/references/index.ts, src/references/model.ts, src/tree.ts, src/navigation.ts and src/utils.ts. Not built: Show Call Hierarchy and Show Type Hierarchy, the highlights of the matches in the editors, dragging a result out of the view, and the setting references.preferredLocation.
Index ¶
Constants ¶
const ( // ID is the id of the extension. ID = "emetos.references" // ContainerID and ViewID are the container of the side bar and its view (VS Code's references-view and // references-view.tree). ContainerID = "emetos.references.container" ViewID = "emetos.references.tree" // FindReferences and FindImplementations ask the language server about the symbol at the cursor. FindReferences = "references-view.findReferences" FindImplementations = "references-view.findImplementations" // Find is the legacy name of FindReferences. Find = "references-view.find" // ClearHistory forgets the searches; Clear empties the view; Refresh runs the last search again; PickFromHistory chooses an // earlier search to run again. ClearHistory = "references-view.clearHistory" Clear = "references-view.clear" Refresh = "references-view.refresh" PickFromHistory = "references-view.pickFromHistory" // RemoveReferenceItem (Dismiss), Copy, CopyAll, CopyPath and Refind (Rerun) act on a row of the view: the one named by the // argument {"key": ...}, else the selected one. RemoveReferenceItem = "references-view.removeReferenceItem" Copy = "references-view.copy" CopyAll = "references-view.copyAll" CopyPath = "references-view.copyPath" Refind = "references-view.refind" // Next and Prev go to the next and the previous location (F4 and Shift+F4). Next = "references-view.next" Prev = "references-view.prev" // CollapseAll folds the files of the view (VS Code's built-in action of every tree view). CollapseAll = "workbench.actions.treeView.references-view.tree.collapseAll" )
The ids of the extension. The commands are those of VS Code's extension; the container, the view and the context keys start with the id of the extension, as every extension's do (SPEC §10.15).
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.