Interface DeclarationProvider

Expand description

The definition provider interface defines the contract between extensions and the go to definition and peek definition features.

interface DeclarationProvider {
    provideDeclaration(
        model: ITextModel,
        position: Position,
        token: CancellationToken,
    ): ProviderResult<Definition>;
}

Methods§

§

provideDeclaration(
    model: ITextModel,
    position: Position,
    token: CancellationToken,
): ProviderResult<Definition>

Provide the declaration of the symbol at the given position and document.