提交 926e27cb 编写于 作者: J Johannes Rieken

fix compile error

上级 998a6d7c
......@@ -113,31 +113,4 @@ suite('commands namespace tests', () => {
return Promise.all([a, b, c, d]);
});
test('onDidExecuteCommand', async function () {
let args: any[];
let d1 = commands.registerCommand('t1', function () {
args = [...arguments];
});
const p = new Promise((resolve, reject) => {
let d2 = commands.onDidExecuteCommand(event => {
d2.dispose();
d1.dispose();
try {
assert.equal(event.command, 't1');
assert.deepEqual(args, event.arguments);
resolve();
} catch (e) {
reject(e);
}
});
});
await commands.executeCommand('t1', { foo: 1 });
await p;
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册