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

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

Properties

Properties

markers: IMarkerData[]

An array of diagnostics.

only?: string

Requested kind of actions to return.

The reason why code actions were requested.