The type definition provider defines the contract between extensions and the go to type definition feature.
The type definition provider defines the contract between extensions and the go to type definition feature.
(provide-type-definition type-definition-provider document position token)
Provide the type 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 type 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 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 |