Interface CodeActionContext

Expand description

Contains additional diagnostic information about the context in which a code action is run.

interface CodeActionContext {
    markers: IMarkerData[];
    only?: string;
    trigger: CodeActionTriggerType;
}

Properties§

§readonly markers: IMarkerData[]

An array of diagnostics.

§readonly only?: string

Requested kind of actions to return.

§readonly trigger: CodeActionTriggerType

The reason why code actions were requested.