InlayHintsProvider

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

Online Documentation

Properties

Link copied to clipboard
abstract external var onDidChangeInlayHints: Event<Void>?

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

Link copied to clipboard
abstract external var resolveInlayHint: (hint: T, token: CancellationToken) -> ProviderResult<T>?

Given an inlay hint fill in tooltip, text edits, or complete label parts.

Functions

Link copied to clipboard
abstract external fun provideInlayHints(document: TextDocument, range: Range, token: CancellationToken): ProviderResult<ReadonlyArray<T>>

Provide inlay hints for the given range and document.