defaultPath:this.contextService.hasWorkspace()?dirname(this.contextService.getWorkspace().roots[0].fsPath):void0// pick the parent of the first root by default
@@ -132,19 +143,18 @@ export class AddRootFolderAction extends BaseRootFolderAction {
returnsuper.handleNotInMultiFolderWorkspaceCase(nls.localize('addSupported',"You can only add folders to workspaces. Do you want to create a new workspace?"));
}
returnthis.windowService.pickFolder({buttonLabel:nls.localize('add',"Add"),title:nls.localize('addFolderToWorkspaceTitle',"Add Folder to Workspace")}).then(folders=>{
if(!folders.length){
returnTPromise.as(null);
}
constfolders=super.pickFolders(nls.localize('add',"Add"),nls.localize('addFolderToWorkspaceTitle',"Add Folder to Workspace"));
returnthis.windowService.pickFolder({buttonLabel:nls.localize('select',"Select"),title:nls.localize('selectWorkspace',"Select Folders for Workspace")}).then(folders=>{
if(!folders.length){
returnTPromise.as(null);
}
constfolders=super.pickFolders(nls.localize('select',"Select"),nls.localize('selectWorkspace',"Select Folders for Workspace"));
defaultPath:this.contextService.hasWorkspace()?dirname(this.contextService.getWorkspace().roots[0].fsPath):void0// pick the parent of the first root by default