This commit is contained in:
Johannes Rieken
2017-03-13 13:49:15 +01:00
parent 95f4f8d03b
commit b86a54e757
3 changed files with 69 additions and 54 deletions

View File

@@ -290,6 +290,17 @@ suite('window namespace tests', () => {
});
});
test('showQuickPick, never resolve promise and cancel - #22453', function () {
const result = window.showQuickPick(new Promise<string[]>(resolve => { }));
const a = result.then(value => {
assert.equal(value, undefined);
});
const b = commands.executeCommand('workbench.action.closeQuickOpen'),
return Promise.all([a, b]);
});
test('editor, selection change kind', () => {
return workspace.openTextDocument(join(workspace.rootPath || '', './far.js')).then(doc => window.showTextDocument(doc)).then(editor => {