Provide document highlights for the given position and document.
The document in which the command was invoked.
The position at which the command was invoked.
An array of document highlights, or a thenable that resolves to document highlights.
The lack of a result can be signaled by returning undefined
, null
, or an empty array.
Generated using TypeDoc
A document highlight provider provides ranges to highlight in the current document like all occurrences of a variable or all exit-points of a function.
Providers are queried for document highlights on symbol hovers in any document matching the document selector specified at registration time.