Interface InlayHintsProvider<T>

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

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

Type Parameters

Properties

onDidChangeInlayHints?: Event<void>

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

Methods