The reference provider interface defines the contract between extensions and the find references-feature.
The reference provider interface defines the contract between extensions and the [find references](https://code.visualstudio.com/docs/editor/editingevolved#_peek)-feature.
(provide-references reference-provider document position context token)Provide a set of project-wide references for the given position and document.
Parameters:
document: TextDocument - The document in which the command was invoked.position: Position - The position at which the command was invoked.context: ReferenceContexttoken: CancellationToken - A cancellation token.Returns: ProviderResult<Location[]> - An array of locations or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined, null, or an empty array.
Provide a set of project-wide references for the given position and document. **Parameters:** - `document`: `TextDocument` - The document in which the command was invoked. - `position`: `Position` - The position at which the command was invoked. - `context`: `ReferenceContext` - `token`: `CancellationToken` - A cancellation token. **Returns:** `ProviderResult<Location[]>` - An array of locations or a thenable that resolves to such. The lack of a result can be signaled by returning `undefined`, `null`, or an empty array.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |