Interface CodeActionMiddleware

interface CodeActionMiddleware {
    provideCodeActions?: (
        this: void,
        document: TextDocument,
        range: Range,
        context: CodeActionContext,
        token: CancellationToken,
        next: ProvideCodeActionsSignature,
    ) => ProviderResult<(Command | CodeAction)[]>;
    resolveCodeAction?: (
        this: void,
        item: CodeAction,
        token: CancellationToken,
        next: ResolveCodeActionSignature,
    ) => ProviderResult<CodeAction>;
}

Properties

provideCodeActions?: (
    this: void,
    document: TextDocument,
    range: Range,
    context: CodeActionContext,
    token: CancellationToken,
    next: ProvideCodeActionsSignature,
) => ProviderResult<(Command | CodeAction)[]>
resolveCodeAction?: (
    this: void,
    item: CodeAction,
    token: CancellationToken,
    next: ResolveCodeActionSignature,
) => ProviderResult<CodeAction>