@@ -488,13 +488,15 @@ export class CommandCenter {
488488 ) ;
489489
490490 const choices = [ ] ;
491- let message = localize ( 'proposeopen' , "Would you like to open the cloned repository?" ) ;
492- const open = localize ( 'openrepo' , "Open Repository" ) ;
491+ let message = localize ( 'proposeopen' , "Where would you to open the cloned repository?" ) ;
492+ const open = localize ( 'openrepo' , "Current Window" ) ;
493+ const openNewWindow = localize ( 'openreponew' , "New Window" ) ;
493494 choices . push ( open ) ;
495+ choices . push ( openNewWindow ) ;
494496
495497 const addToWorkspace = localize ( 'add' , "Add to Workspace" ) ;
496498 if ( workspace . workspaceFolders ) {
497- message = localize ( 'proposeopen2' , "Would you like to open the cloned repository, or add it to the current workspace?" ) ;
499+ message = localize ( 'proposeopen2' , "Where would you like to open the cloned repository, or add it to the current workspace?" ) ;
498500 choices . push ( addToWorkspace ) ;
499501 }
500502
@@ -515,6 +517,8 @@ export class CommandCenter {
515517 commands . executeCommand ( 'vscode.openFolder' , uri ) ;
516518 } else if ( result === addToWorkspace ) {
517519 workspace . updateWorkspaceFolders ( workspace . workspaceFolders ! . length , 0 , { uri } ) ;
520+ } else if ( result === openNewWindow ) {
521+ commands . executeCommand ( 'vscode.openFolder' , uri , true ) ;
518522 }
519523 } catch ( err ) {
520524 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 || '' ) ) {
@@ -600,17 +604,19 @@ export class CommandCenter {
600604 await this . git . init ( repositoryPath ) ;
601605
602606 const choices = [ ] ;
603- let message = localize ( 'proposeopen init' , "Would you like to open the initialized repository?" ) ;
604- const open = localize ( 'openrepo' , "Open Repository" ) ;
607+ let message = localize ( 'proposeopen init' , "Where would you like to open the initialized repository?" ) ;
608+ const open = localize ( 'openrepo' , "Current Window" ) ;
609+ const openNewWindow = localize ( 'openreponew' , "New Window" ) ;
605610 choices . push ( open ) ;
611+ choices . push ( openNewWindow ) ;
606612
607613 if ( ! askToOpen ) {
608614 return ;
609615 }
610616
611617 const addToWorkspace = localize ( 'add' , "Add to Workspace" ) ;
612618 if ( workspace . workspaceFolders ) {
613- message = localize ( 'proposeopen2 init' , "Would you like to open the initialized repository, or add it to the current workspace?" ) ;
619+ message = localize ( 'proposeopen2 init' , "Where would you like to open the initialized repository, or add it to the current workspace?" ) ;
614620 choices . push ( addToWorkspace ) ;
615621 }
616622
@@ -621,6 +627,8 @@ export class CommandCenter {
621627 commands . executeCommand ( 'vscode.openFolder' , uri ) ;
622628 } else if ( result === addToWorkspace ) {
623629 workspace . updateWorkspaceFolders ( workspace . workspaceFolders ! . length , 0 , { uri } ) ;
630+ } else if ( result === openNewWindow ) {
631+ commands . executeCommand ( 'vscode.openFolder' , uri , true ) ;
624632 } else {
625633 await this . model . openRepository ( repositoryPath ) ;
626634 }
0 commit comments