File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { QuickPickItem, QuickPickItemKind } from 'vscode';
2
2
import { PythonProjectCreator } from '../../api' ;
3
3
import { InternalEnvironmentManager , InternalPackageManager } from '../../internal.api' ;
4
4
import { Common , Pickers } from '../localize' ;
5
- import { showQuickPickWithButtons , showQuickPick } from '../window.apis' ;
5
+ import { showQuickPick , showQuickPickWithButtons } from '../window.apis' ;
6
6
7
7
function getDescription ( mgr : InternalEnvironmentManager | InternalPackageManager ) : string | undefined {
8
8
if ( mgr . description ) {
@@ -27,7 +27,8 @@ export async function pickEnvironmentManager(
27
27
return ;
28
28
}
29
29
30
- if ( managers . length === 1 ) {
30
+ if ( managers . length === 1 && ! managers [ 0 ] . supportsQuickCreate ) {
31
+ // If there's only one manager and it doesn't support quick create, return its ID directly.
31
32
return managers [ 0 ] . id ;
32
33
}
33
34
You can’t perform that action at this time.
0 commit comments