references

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func New

func New() extension.Extension

New is the Factory of the extension.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL