提交 1625d77e 编写于 作者: S Sandeep Somavarapu

Fix #94246

上级 735a161b
......@@ -192,19 +192,19 @@ export class WorkspaceService extends Disposable implements IConfigurationServic
const storedFoldersToAdd: IStoredWorkspaceFolder[] = [];
await Promise.all(foldersToAdd.map(async folderToAdd => {
for (const folderToAdd of foldersToAdd) {
const folderURI = folderToAdd.uri;
if (this.contains(currentWorkspaceFolderUris, folderURI)) {
return; // already existing
continue; // already existing
}
try {
const result = await this.fileService.resolve(folderURI);
if (!result.isDirectory) {
return;
continue;
}
} catch (e) { /* Ignore */ }
storedFoldersToAdd.push(getStoredWorkspaceFolder(folderURI, false, folderToAdd.name, workspaceConfigFolder, slashForPath));
}));
}
// Apply to array of newStoredFolders
if (storedFoldersToAdd.length > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册