File tree 3 files changed +5
-2
lines changed
src/client/pythonEnvironments
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export class VenvCreationProvider implements CreateEnvironmentProvider {
163
163
EnvironmentType . MicrosoftStore ,
164
164
EnvironmentType . Global ,
165
165
EnvironmentType . Pyenv ,
166
- ] . includes ( i . envType ) ,
166
+ ] . includes ( i . envType ) && i . type === undefined , // only global intepreters
167
167
{
168
168
skipRecommended : true ,
169
169
showBackButton : true ,
Original file line number Diff line number Diff line change @@ -68,10 +68,11 @@ export type InterpreterInformation = {
68
68
*
69
69
* @prop companyDisplayName - the user-facing name of the distro publisher
70
70
* @prop displayName - the user-facing name for the environment
71
- * @prop type - the kind of Python environment
71
+ * @prop envType - the kind of Python environment
72
72
* @prop envName - the environment's name, if applicable (else `envPath` is set)
73
73
* @prop envPath - the environment's root dir, if applicable (else `envName`)
74
74
* @prop cachedEntry - whether or not the info came from a cache
75
+ * @prop type - the type of Python environment, if applicable
75
76
*/
76
77
// Note that "cachedEntry" is specific to the caching machinery
77
78
// and doesn't really belong here.
@@ -84,6 +85,7 @@ export type PythonEnvironment = InterpreterInformation & {
84
85
envName ?: string ;
85
86
envPath ?: string ;
86
87
cachedEntry ?: boolean ;
88
+ type ?: string ;
87
89
} ;
88
90
89
91
/**
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ function convertEnvInfo(info: PythonEnvInfo): PythonEnvironment {
75
75
}
76
76
env . displayName = info . display ;
77
77
env . detailedDisplayName = info . detailedDisplayName ;
78
+ env . type = info . type ;
78
79
// We do not worry about using distro.defaultDisplayName.
79
80
80
81
return env ;
You can’t perform that action at this time.
0 commit comments