File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ function getDescription(mgr: InternalEnvironmentManager | InternalPackageManager
2121export async function pickEnvironmentManager (
2222 managers : InternalEnvironmentManager [ ] ,
2323 defaultManagers ?: InternalEnvironmentManager [ ] ,
24+ showBackButton ?: boolean ,
2425) : Promise < string | undefined > {
2526 if ( managers . length === 0 ) {
2627 return ;
@@ -72,6 +73,7 @@ export async function pickEnvironmentManager(
7273 const item = await showQuickPickWithButtons ( items , {
7374 placeHolder : Pickers . Managers . selectEnvironmentManager ,
7475 ignoreFocusOut : true ,
76+ showBackButton,
7577 } ) ;
7678 return ( item as QuickPickItem & { id : string } ) ?. id ;
7779}
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export async function createEnvironmentCommand(
115115export async function createAnyEnvironmentCommand (
116116 em : EnvironmentManagers ,
117117 pm : PythonProjectManager ,
118- options ?: CreateEnvironmentOptions & { selectEnvironment : boolean } ,
118+ options ?: CreateEnvironmentOptions & { selectEnvironment : boolean ; showBackButton : boolean } ,
119119) : Promise < PythonEnvironment | undefined > {
120120 const select = options ?. selectEnvironment ;
121121 const projects = pm . getProjects ( ) ;
@@ -130,7 +130,7 @@ export async function createAnyEnvironmentCommand(
130130 return env ;
131131 }
132132 } else if ( projects . length > 0 ) {
133- const selected = await pickProjectMany ( projects ) ;
133+ const selected = await pickProjectMany ( projects , options ?. showBackButton ) ;
134134
135135 if ( selected && selected . length > 0 ) {
136136 const defaultManagers : InternalEnvironmentManager [ ] = [ ] ;
@@ -151,6 +151,7 @@ export async function createAnyEnvironmentCommand(
151151 let managerId = await pickEnvironmentManager (
152152 em . managers . filter ( ( m ) => m . supportsCreate ) ,
153153 defaultManagers ,
154+ options ?. showBackButton ,
154155 ) ;
155156 if ( managerId ?. startsWith ( 'QuickCreate#' ) ) {
156157 quickCreate = true ;
You can’t perform that action at this time.
0 commit comments