@@ -487,10 +487,10 @@ export class CommandCenter {
487487 ( _ , token ) => this . git . clone ( url ! , parentPath , token )
488488 ) ;
489489
490- const choices = [ ] ;
491490 let message = localize ( 'proposeopen' , "Would you like to open the cloned repository?" ) ;
492- const open = localize ( 'openrepo' , "Open Repository" ) ;
493- choices . push ( open ) ;
491+ const open = localize ( 'openrepo' , "Open" ) ;
492+ const openNewWindow = localize ( 'openreponew' , "Open in New Window" ) ;
493+ const choices = [ open , openNewWindow ] ;
494494
495495 const addToWorkspace = localize ( 'add' , "Add to Workspace" ) ;
496496 if ( workspace . workspaceFolders ) {
@@ -515,6 +515,8 @@ export class CommandCenter {
515515 commands . executeCommand ( 'vscode.openFolder' , uri ) ;
516516 } else if ( result === addToWorkspace ) {
517517 workspace . updateWorkspaceFolders ( workspace . workspaceFolders ! . length , 0 , { uri } ) ;
518+ } else if ( result === openNewWindow ) {
519+ commands . executeCommand ( 'vscode.openFolder' , uri , true ) ;
518520 }
519521 } catch ( err ) {
520522 if ( / a l r e a d y e x i s t s a n d i s n o t a n e m p t y d i r e c t o r y / . test ( err && err . stderr || '' ) ) {
@@ -599,10 +601,10 @@ export class CommandCenter {
599601
600602 await this . git . init ( repositoryPath ) ;
601603
602- const choices = [ ] ;
603604 let message = localize ( 'proposeopen init' , "Would you like to open the initialized repository?" ) ;
604- const open = localize ( 'openrepo' , "Open Repository" ) ;
605- choices . push ( open ) ;
605+ const open = localize ( 'openrepo' , "Open" ) ;
606+ const openNewWindow = localize ( 'openreponew' , "Open in New Window" ) ;
607+ const choices = [ open , openNewWindow ] ;
606608
607609 if ( ! askToOpen ) {
608610 return ;
@@ -621,6 +623,8 @@ export class CommandCenter {
621623 commands . executeCommand ( 'vscode.openFolder' , uri ) ;
622624 } else if ( result === addToWorkspace ) {
623625 workspace . updateWorkspaceFolders ( workspace . workspaceFolders ! . length , 0 , { uri } ) ;
626+ } else if ( result === openNewWindow ) {
627+ commands . executeCommand ( 'vscode.openFolder' , uri , true ) ;
624628 } else {
625629 await this . model . openRepository ( repositoryPath ) ;
626630 }
0 commit comments