defaultPath:this.contextService.hasWorkspace()?dirname(this.contextService.getWorkspace().roots[0].fsPath):void0// pick the parent of the first root by default
returnsuper.handleNotInMultiFolderWorkspaceCase(nls.localize('addSupported',"You can only add folders to workspaces. Do you want to create a new workspace with the current folder and add?"),true);
letfolders=this.pickFolders(nls.localize('select',"Select"),nls.localize('selectWorkspace',"Select Folders for Workspace"));
if(this.handleNotInMultiFolderWorkspaceCase(nls.localize('addSupported',"You can only add folders to workspaces. Do you want to create a new workspace with the current folder and add?"),nls.localize({key:'createAndAdd',comment:['&& denotes a mnemonic']},"&&Create Workspace & Add"))){
returnsuper.handleNotInMultiFolderWorkspaceCase(nls.localize('saveNotSupported',"You need to open a workspace first to save it. Do you want to create a new workspace with the existing folder and add?"),true);
if(this.handleNotInMultiFolderWorkspaceCase(nls.localize('saveNotSupported',"You need to open a workspace first to save it. Do you want to create a new workspace with the existing folder and save?"),nls.localize({key:'createAndSave',comment:['&& denotes a mnemonic']},"&&Create Workspace & Save"))){