mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
* Workspace folder picker command (for #32936) * fix test * make this proper API
This commit is contained in:
@@ -134,4 +134,4 @@ suite('commands namespace tests', () => {
|
||||
|
||||
return Promise.all([a, b, c, d]);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -349,6 +349,18 @@ suite('window namespace tests', () => {
|
||||
return Promise.all([a, b]);
|
||||
});
|
||||
|
||||
test('showWorkspaceFolderPick', function () {
|
||||
const p = (<any>window).showWorkspaceFolderPick(undefined);
|
||||
|
||||
return commands.executeCommand('workbench.action.acceptSelectedQuickOpenItem').then(() => {
|
||||
return p.then(workspace => {
|
||||
assert.ok(true);
|
||||
}, error => {
|
||||
assert.ok(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('Default value for showInput Box accepted even if fails validateInput, #33691', function () {
|
||||
const result = window.showInputBox({
|
||||
validateInput: (value: string) => {
|
||||
|
||||
Reference in New Issue
Block a user