CEIP.hookCommandBefore Member

Internal.

Syntax

object.hookCommandBefore(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function ceip_hookcommandbefore(e)
{
try
{
if (this.isCommandIgnored(e))
return;
this.commandNest++;
var data = {type: "command", viewType: this.getEventViewType(e),
command: e.command.name};
if (typeof e.command.func == "string")
data.alias = true;
if (("source" in e) && (typeof e.source == "string"))
data.source = e.source;
else if (e.isInteractive)
data.source = "inputbox";
if (this.commandNest > 1)
data.nest = (this.commandNest - 1);
this.logEvent(data);
}
catch (ex)
{
this.logEvent({type: "logger", event: "error",
method: "hookCommandBefore",
error: formatException(ex)});
}
}