The code action interface defines the contract between extensions and the light bulb feature.

interface CodeActionProvider {
    provideCodeActions(model, range, context, token): ProviderResult<CodeActionList>;
    resolveCodeAction?(codeAction, token): ProviderResult<CodeAction>;
}

Methods