fix compile error

This commit is contained in:
Johannes Rieken
2019-08-15 16:04:50 +02:00
parent 998a6d7cf9
commit 926e27cb4f

View File

@@ -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;
});
});