提交 3650ea42 编写于 作者: J Johannes Rieken

register/execute, #12337

上级 4aa1c3c6
......@@ -40,6 +40,22 @@ suite('commands namespace tests', () => {
}, done);
});
test('command with args', function () {
let args: IArguments;
let registration = commands.registerCommand('t1', function() {
args = arguments;
});
return commands.executeCommand('t1', 'start').then(() => {
registration.dispose();
assert.ok(args);
assert.equal(args.length, 1);
assert.equal(args[0], 'start');
});
});
test('editorCommand with extra args', function () {
let args: IArguments;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册