InlayHintsProvider<T extends InlayHint> constructor
InlayHintsProvider<T extends InlayHint> ({})
Implementation
factory InlayHintsProvider({
_i3.Event<void>? onDidChangeInlayHints,
_i4.FutureOr<_i2.List<_i3.InlayHint>> Function(
_i3.TextDocument,
_i3.Range,
_i3.CancellationToken,
)? provideInlayHints,
_i4.FutureOr<_i3.InlayHint> Function(
_i3.InlayHint,
_i3.CancellationToken,
)? resolveInlayHint,
}) =>
InlayHintsProvider._(
onDidChangeInlayHints: onDidChangeInlayHints ?? _i6.undefined,
provideInlayHints: provideInlayHints == null
? null
: _i5.allowInterop((
p0,
p1,
p2,
) =>
_i6.Promise.futureOr(() => provideInlayHints(
p0,
p1,
p2,
))),
resolveInlayHint: resolveInlayHint == null
? null
: _i5.allowInterop((
p0,
p1,
) =>
_i6.Promise.futureOr(() => resolveInlayHint(
p0,
p1,
))),
);