Bootstraps type hierarchy by returning the item that is denoted by the given document
and position. This item will be used as entry into the type graph. Providers should
return undefined
or null
when there is no item at the given location.
The document in which the command was invoked.
The position at which the command was invoked.
A cancellation token.
One or multiple type hierarchy items or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined
, null
, or an empty array.
Provide all supertypes for an item, e.g all types from which a type is derived/inherited. In graph terms this describes directed and annotated edges inside the type graph, e.g the given item is the starting node and the result is the nodes that can be reached.
The hierarchy item for which super types should be computed.
A cancellation token.
A set of direct supertypes or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined
or null
.
Provide all subtypes for an item, e.g all types which are derived/inherited from the given item. In graph terms this describes directed and annotated edges inside the type graph, e.g the given item is the starting node and the result is the nodes that can be reached.
The hierarchy item for which subtypes should be computed.
A cancellation token.
A set of direct subtypes or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined
or null
.
The type hierarchy provider interface describes the contract between extensions and the type hierarchy feature.