Workspace folder picker command (for #32936) (#34648)

* Workspace folder picker command (for #32936)

* fix test

* make this proper API
This commit is contained in:
Benjamin Pasero
2017-09-20 15:06:30 +02:00
committed by GitHub
parent 01dade32b7
commit 492ae2a023
5 changed files with 64 additions and 5 deletions

View File

@@ -134,4 +134,4 @@ suite('commands namespace tests', () => {
return Promise.all([a, b, c, d]);
});
});
});

View File

@@ -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) => {