I try this plugin:
- Code: Select all
class TestOracleCommand(sublime_plugin.TextCommand):
def run(self, edit, myparam):
print myparam
And call it with:
- Code: Select all
>>> view.run_command("test_oracle", {"myparam":[1,2]})
[1.0, 2.0]
>>> view.run_command("test_oracle", {"myparam":(1,2)})
None
>>> view.run_command("test_oracle", {"myparam":sublime.Region(0)})
None
As we can see, some type of parameter doesn't pass to the command.
Is it a bug or a limitation ?