Interface DocumentSymbolProvider

Expand description

The document symbol provider interface defines the contract between extensions and the go to symbol-feature.

interface DocumentSymbolProvider {
    displayName?: string;
    provideDocumentSymbols(
        model: ITextModel,
        token: CancellationToken,
    ): ProviderResult<DocumentSymbol[]>;
}

Properties§

§displayName?: string

Methods§

§

provideDocumentSymbols(
    model: ITextModel,
    token: CancellationToken,
): ProviderResult<DocumentSymbol[]>

Provide symbol information for the given document.