Theia API Documentation v1.65.0
    Preparing search index...

    The inlay hints provider interface defines the contract between extensions and the inlay hints feature.

    interface InlayHintsProvider<T extends InlayHint = InlayHint> {
        onDidChangeInlayHints?: Event<void>;
        provideInlayHints(
            document: TextDocument,
            range: Range,
            token: CancellationToken,
        ): ProviderResult<T[]>;
        resolveInlayHint?(hint: T, token: CancellationToken): ProviderResult<T>;
    }

    Type Parameters

    Index

    Properties

    onDidChangeInlayHints?: Event<void>

    An optional event to signal that inlay hints from this provider have changed.

    Methods