@@ -168,7 +168,7 @@ const str_ = i18n.i18n.registerUIStrings('panels/sources/NavigatorView.ts', UISt
168
168
const i18nString = i18n . i18n . getLocalizedString . bind ( undefined , str_ ) ;
169
169
export const Types = {
170
170
Authored : 'authored' ,
171
- ConnectableFileSystem : 'connectable -fs' ,
171
+ AutomaticFileSystem : 'automatic -fs' ,
172
172
Deployed : 'deployed' ,
173
173
Domain : 'domain' ,
174
174
File : 'file' ,
@@ -190,7 +190,7 @@ const TYPE_ORDERS = new Map([
190
190
[ Types . File , 10 ] ,
191
191
[ Types . Frame , 70 ] ,
192
192
[ Types . Worker , 90 ] ,
193
- [ Types . ConnectableFileSystem , 100 ] ,
193
+ [ Types . AutomaticFileSystem , 100 ] ,
194
194
[ Types . FileSystem , 100 ] ,
195
195
] ) ;
196
196
@@ -567,11 +567,12 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
567
567
Snippets . ScriptSnippetFileSystem . isSnippetsProject ( project ) || rootOrDeployed . child ( project . id ( ) ) ) {
568
568
return ;
569
569
}
570
- rootOrDeployed . appendChild ( new NavigatorGroupTreeNode (
571
- this , project , project . id ( ) ,
572
- project . type ( ) === Workspace . Workspace . projectTypes . ConnectableFileSystem ? Types . ConnectableFileSystem :
573
- Types . FileSystem ,
574
- project . displayName ( ) ) ) ;
570
+ const type =
571
+ ( project instanceof Persistence . AutomaticFileSystemWorkspaceBinding . FileSystem ||
572
+ ( project instanceof Persistence . FileSystemWorkspaceBinding . FileSystem && project . fileSystem ( ) . automatic ) ) ?
573
+ Types . AutomaticFileSystem :
574
+ Types . FileSystem ;
575
+ rootOrDeployed . appendChild ( new NavigatorGroupTreeNode ( this , project , project . id ( ) , type , project . displayName ( ) ) ) ;
575
576
this . selectDefaultTreeNode ( ) ;
576
577
}
577
578
@@ -1284,8 +1285,9 @@ export class NavigatorFolderTreeElement extends UI.TreeOutline.TreeElement {
1284
1285
private hovered ?: boolean ;
1285
1286
private isIgnoreListed ?: boolean ;
1286
1287
1287
- constructor ( navigatorView : NavigatorView , type : string , title : string , hoverCallback ?: ( ( arg0 : boolean ) => void ) ) {
1288
- const expandable = type !== Types . ConnectableFileSystem ;
1288
+ constructor (
1289
+ navigatorView : NavigatorView , type : string , title : string , hoverCallback ?: ( ( arg0 : boolean ) => void ) ,
1290
+ expandable = true ) {
1289
1291
super ( '' , expandable , NavigatorFolderTreeElement . #contextForType( type ) ) ;
1290
1292
this . listItemElement . classList . add ( 'navigator-' + type + '-tree-item' , 'navigator-folder-tree-item' ) ;
1291
1293
UI . ARIAUtils . setLabel ( this . listItemElement , `${ title } , ${ type } ` ) ;
@@ -1307,6 +1309,8 @@ export class NavigatorFolderTreeElement extends UI.TreeOutline.TreeElement {
1307
1309
iconType = 'code' ;
1308
1310
} else if ( type === Types . Deployed ) {
1309
1311
iconType = 'deployed' ;
1312
+ } else if ( type === Types . AutomaticFileSystem ) {
1313
+ iconType = 'folder-asterisk' ;
1310
1314
}
1311
1315
1312
1316
const icon = IconButton . Icon . create ( iconType ) ;
@@ -2067,11 +2071,12 @@ export class NavigatorGroupTreeNode extends NavigatorTreeNode {
2067
2071
if ( this . treeElement ) {
2068
2072
return this . treeElement ;
2069
2073
}
2070
- this . treeElement = new NavigatorFolderTreeElement ( this . navigatorView , this . type , this . title , this . hoverCallback ) ;
2074
+ const expandable = ! ( this . project instanceof Persistence . AutomaticFileSystemWorkspaceBinding . FileSystem ) ;
2075
+ this . treeElement =
2076
+ new NavigatorFolderTreeElement ( this . navigatorView , this . type , this . title , this . hoverCallback , expandable ) ;
2071
2077
this . treeElement . setNode ( this ) ;
2072
- if ( this . project && this . project . type ( ) === Workspace . Workspace . projectTypes . ConnectableFileSystem ) {
2073
- const automaticFileSystemManager = Persistence . AutomaticFileSystemManager . AutomaticFileSystemManager . instance ( ) ;
2074
- const { automaticFileSystem} = automaticFileSystemManager ;
2078
+ if ( this . project instanceof Persistence . AutomaticFileSystemWorkspaceBinding . FileSystem ) {
2079
+ const { automaticFileSystem, automaticFileSystemManager} = this . project ;
2075
2080
switch ( automaticFileSystem ?. state ) {
2076
2081
case 'connecting' : {
2077
2082
const spinner = new Spinners . Spinner . Spinner ( ) ;
0 commit comments