The definition provider interface defines the contract between extensions and the go to definition and peek definition features.
The definition provider interface defines the contract between extensions and the [go to definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition) and peek definition features.
(provide-definition definition-provider document position token)
Provide the definition of the symbol at 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.token
: CancellationToken
- A cancellation token.Returns: ProviderResult<Definition | LocationLink[]>
- A definition or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined
or null
.
Provide the definition of the symbol at 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. - `token`: `CancellationToken` - A cancellation token. **Returns:** `ProviderResult<Definition | LocationLink[]>` - A definition or a thenable that resolves to such. The lack of a result can be signaled by returning `undefined` or `null`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close