Skip to content

Commit 1625d77

Browse files
committed
1 parent 735a161 commit 1625d77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/workbench/services/configuration/browser/configurationService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,19 @@ export class WorkspaceService extends Disposable implements IConfigurationServic
192192

193193
const storedFoldersToAdd: IStoredWorkspaceFolder[] = [];
194194

195-
await Promise.all(foldersToAdd.map(async folderToAdd => {
195+
for (const folderToAdd of foldersToAdd) {
196196
const folderURI = folderToAdd.uri;
197197
if (this.contains(currentWorkspaceFolderUris, folderURI)) {
198-
return; // already existing
198+
continue; // already existing
199199
}
200200
try {
201201
const result = await this.fileService.resolve(folderURI);
202202
if (!result.isDirectory) {
203-
return;
203+
continue;
204204
}
205205
} catch (e) { /* Ignore */ }
206206
storedFoldersToAdd.push(getStoredWorkspaceFolder(folderURI, false, folderToAdd.name, workspaceConfigFolder, slashForPath));
207-
}));
207+
}
208208

209209
// Apply to array of newStoredFolders
210210
if (storedFoldersToAdd.length > 0) {

0 commit comments

Comments
 (0)