Interface DeclarationProvider
Expand description
interface DeclarationProvider {
provideDeclaration(
model: ITextModel,
position: Position,
token: CancellationToken,
): ProviderResult<Definition>;
}Methods§
§provideDeclaration(
model: ITextModel,
position: Position,
token: CancellationToken,
): ProviderResult<Definition>
provideDeclaration(
model: ITextModel,
position: Position,
token: CancellationToken,
): ProviderResult<Definition>
Provide the declaration of the symbol at the given position and document.
The definition provider interface defines the contract between extensions and the go to definition and peek definition features.