TaskActionResolveContext

A TaskActionResolveContext object contains contextual information about a TaskResolvableAction instance being resolved in response to the user invoking it. An object of this type will be provided to a task provider’s resolveTaskAction() method.

The TaskActionResolveContext class is not subclassable.

Added in Nova 4.

Properties

action

The action type name of the action being invoked, such as Task.Build, Task.Run, or Task.Clean. This value can be compare to see what type of action to resolve.

config

If the action being resolved is from a Task Template (defined in an extension’s manifest taskTemplates key), the property will be a Configuration object that contains configuration values as set in the Project Settings for the task.

If the action being resolved is not from a task template (such as one provided by a task assistant) this property will be undefined.

The configuration object provided for this property is transient. It will not continue to be referenced by the runtime after this resolution of the action is complete. As such, attempting to set values or observe changes on it won’t be particularly useful.

This property is readonly.

Added in Nova 5.

data

The arbitrary data argument that was provided for the resolvable action which is being resolved.

This object can be of any type that is transferrable, or encodable in the same way as arguments to the CommandsRegistry. If not set when the action was defined, this property will be undefined.

This property is readonly.