The document symbol provider interface defines the contract between extensions and the go to symbol-feature.
The document symbol provider interface defines the contract between extensions and the [go to symbol](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-symbol)-feature.
(provide-document-symbols document-symbol-provider document token)Provide symbol information for the given document.
Parameters:
document: TextDocument - The document in which the command was invoked.token: CancellationToken - A cancellation token.Returns: ProviderResult<DocumentSymbol[] | SymbolInformation[]> - An array of document highlights or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined, null, or an empty array.
Provide symbol information for the given document. **Parameters:** - `document`: `TextDocument` - The document in which the command was invoked. - `token`: `CancellationToken` - A cancellation token. **Returns:** `ProviderResult<DocumentSymbol[] | SymbolInformation[]>` - An array of document highlights 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 |