Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypeDefinitionProvider

A type definition provider implements the "go-to-type-definition" feature.

deprecated

Use LocationProvider and {@link sourcegraph.languages.registerLocationProvider} instead.

Hierarchy

  • TypeDefinitionProvider

Index

Methods

provideTypeDefinition

  • Provide the type definition of the symbol at the given position and document.

    deprecated

    Use LocationProvider and {@link sourcegraph.languages.registerLocationProvider} instead.

    Parameters

    • document: TextDocument

      The document in which the command was invoked.

    • position: Position

      The position at which the command was invoked.

    Returns ProviderResult<Definition>

    A type definition location, or an array of definitions, or null if there is no type definition.

Generated using TypeDoc