We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e11df commit 26c58adCopy full SHA for 26c58ad
src/commands.ts
@@ -407,19 +407,14 @@ async function openWorkspace(
407
if (opened.length === 1 || (opened.length > 1 && openRecent)) {
408
folderPath = opened[0].folderUri.path
409
} else if (opened.length > 1) {
410
- const items = opened.map<vscode.QuickPickItem>((folder) => {
411
- return {
412
- label: folder.folderUri.path,
413
- }
414
- })
415
- const item = await vscode.window.showQuickPick(items, {
+ const items = opened.map((f) => f.folderUri.path)
+ folderPath = await vscode.window.showQuickPick(items, {
416
title: "Select a recently opened folder",
417
})
418
- if (!item) {
+ if (!folderPath) {
419
// User aborted.
420
return
421
}
422
- folderPath = opened[items.indexOf(item)].folderUri.path
423
424
425
0 commit comments