CodeActionProvider<T extends CodeAction> constructor
CodeActionProvider<T extends CodeAction> ({
- FutureOr<
List< provideCodeActions()?,Object> > - FutureOr<
CodeAction> resolveCodeAction()?,
Implementation
factory CodeActionProvider({
_i4.FutureOr<_i2.List<_i2.Object>> Function(
_i3.TextDocument,
_i2.Object,
_i3.CodeActionContext,
_i3.CancellationToken,
)? provideCodeActions,
_i4.FutureOr<_i3.CodeAction> Function(
_i3.CodeAction,
_i3.CancellationToken,
)? resolveCodeAction,
}) =>
CodeActionProvider._(
provideCodeActions: provideCodeActions == null
? null
: _i5.allowInterop((
p0,
p1,
p2,
p3,
) =>
_i6.Promise.futureOr(() => provideCodeActions(
p0,
p1,
p2,
p3,
))),
resolveCodeAction: resolveCodeAction == null
? null
: _i5.allowInterop((
p0,
p1,
) =>
_i6.Promise.futureOr(() => resolveCodeAction(
p0,
p1,
))),
);