mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
fix #22453
This commit is contained in:
@@ -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 => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user