@@ -8,6 +8,7 @@ import * as Common from '../../core/common/common.js';
88import * as Host from '../../core/host/host.js' ;
99import * as i18n from '../../core/i18n/i18n.js' ;
1010import * as Platform from '../../core/platform/platform.js' ;
11+ import * as Root from '../../core/root/root.js' ;
1112import * as SDK from '../../core/sdk/sdk.js' ;
1213import * as Bindings from '../../models/bindings/bindings.js' ;
1314import * as Persistence from '../../models/persistence/persistence.js' ;
@@ -150,16 +151,18 @@ export class SourcesView extends Common.ObjectWrapper.eventMixin<EventTypes, typ
150151 const placeholder = document . createElement ( 'div' ) ;
151152 placeholder . classList . add ( 'sources-placeholder' ) ;
152153
153- const workspaceElement = placeholder . createChild ( 'div' , 'tabbed-pane-placeholder-row' ) ;
154- workspaceElement . classList . add ( 'workspace' ) ;
154+ if ( Root . Runtime . Runtime . isDescriptorEnabled ( { experiment : undefined , condition : Root . Runtime . conditions . notSourcesHideAddFolder } ) ) {
155+ const workspaceElement = placeholder . createChild ( 'div' , 'tabbed-pane-placeholder-row' ) ;
156+ workspaceElement . classList . add ( 'workspace' ) ;
155157
156- const icon = IconButton . Icon . create ( 'sync' , 'sync-icon' ) ;
157- workspaceElement . createChild ( 'span' , 'icon-container' ) . appendChild ( icon ) ;
158- const text = workspaceElement . createChild ( 'span' ) ;
159- text . textContent = UIStrings . workspaceDropInAFolderToSyncSources ;
160- const browseButton = text . createChild ( 'button' ) ;
161- browseButton . textContent = i18nString ( UIStrings . selectFolder ) ;
162- browseButton . addEventListener ( 'click' , this . addFileSystemClicked . bind ( this ) ) ;
158+ const icon = IconButton . Icon . create ( 'sync' , 'sync-icon' ) ;
159+ workspaceElement . createChild ( 'span' , 'icon-container' ) . appendChild ( icon ) ;
160+ const text = workspaceElement . createChild ( 'span' ) ;
161+ text . textContent = UIStrings . workspaceDropInAFolderToSyncSources ;
162+ const browseButton = text . createChild ( 'button' ) ;
163+ browseButton . textContent = i18nString ( UIStrings . selectFolder ) ;
164+ browseButton . addEventListener ( 'click' , this . addFileSystemClicked . bind ( this ) ) ;
165+ }
163166
164167 const shortcuts = [
165168 { actionId : 'quick-open.show' , description : i18nString ( UIStrings . openFile ) } ,
0 commit comments