Build systems do not check whether or not their target commands are enabled.
Expected behavior
Build systems check whether or not their target commands are enabled.
Actual behavior
Build systems do not check whether or not their target commands are enabled.
Steps to reproduce
With a build system as follows:
{
"cmd": ["cmd"],
"target": "target"
}
and a target command as follows:
import sublime
import sublime_plugin
class TargetCommand(sublime_plugin.WindowCommand):
def is_enabled(self, cmd=None):
return False
def run(self, cmd=None):
print("TargetCommand ran with %s as the argument." % cmd)
Summary
Build systems do not check whether or not their target commands are enabled.
Expected behavior
Build systems check whether or not their target commands are enabled.
Actual behavior
Build systems do not check whether or not their target commands are enabled.
Steps to reproduce
With a build system as follows:
and a target command as follows:
running
produces
as output in the console.
Environment