File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
front_end/panels/ai_assistance Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -238,14 +238,19 @@ export class SelectWorkspaceDialog extends UI.Widget.VBox {
238
238
this . #dialog. hide ( ) ;
239
239
} ,
240
240
onAddFolderButtonClick : ( ) => {
241
- void Persistence . IsolatedFileSystemManager . IsolatedFileSystemManager . instance ( ) . addFileSystem ( ) ;
241
+ void this . # addFileSystem( ) ;
242
242
} ,
243
243
onListItemKeyDown : this . #onListItemKeyDown. bind ( this ) ,
244
244
} ;
245
245
246
246
this . #view( viewInput , undefined , this . contentElement ) ;
247
247
}
248
248
249
+ async #addFileSystem( ) : Promise < void > {
250
+ await Persistence . IsolatedFileSystemManager . IsolatedFileSystemManager . instance ( ) . addFileSystem ( ) ;
251
+ this . contentElement ?. querySelector ( '[aria-label="Select"]' ) ?. shadowRoot ?. querySelector ( 'button' ) ?. focus ( ) ;
252
+ }
253
+
249
254
async #connectToAutomaticFilesystem( ) : Promise < void > {
250
255
const success = await this . #automaticFileSystemManager. connectAutomaticFileSystem ( /* addIfMissing= */ true ) ;
251
256
// In the success-case, we will receive a 'ProjectAdded' event and handle it in '#onProjectAdded'.
You can’t perform that action at this time.
0 commit comments