File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
src/client/pythonEnvironments Expand file tree Collapse file tree 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 {
163163 EnvironmentType . MicrosoftStore ,
164164 EnvironmentType . Global ,
165165 EnvironmentType . Pyenv ,
166- ] . includes ( i . envType ) ,
166+ ] . includes ( i . envType ) && i . type === undefined , // only global intepreters
167167 {
168168 skipRecommended : true ,
169169 showBackButton : true ,
Original file line number Diff line number Diff line change @@ -68,10 +68,11 @@ export type InterpreterInformation = {
6868 *
6969 * @prop companyDisplayName - the user-facing name of the distro publisher
7070 * @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
7272 * @prop envName - the environment's name, if applicable (else `envPath` is set)
7373 * @prop envPath - the environment's root dir, if applicable (else `envName`)
7474 * @prop cachedEntry - whether or not the info came from a cache
75+ * @prop type - the type of Python environment, if applicable
7576 */
7677// Note that "cachedEntry" is specific to the caching machinery
7778// and doesn't really belong here.
@@ -84,6 +85,7 @@ export type PythonEnvironment = InterpreterInformation & {
8485 envName ?: string ;
8586 envPath ?: string ;
8687 cachedEntry ?: boolean ;
88+ type ?: string ;
8789} ;
8890
8991/**
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ function convertEnvInfo(info: PythonEnvInfo): PythonEnvironment {
7575 }
7676 env . displayName = info . display ;
7777 env . detailedDisplayName = info . detailedDisplayName ;
78+ env . type = info . type ;
7879 // We do not worry about using distro.defaultDisplayName.
7980
8081 return env ;
You can’t perform that action at this time.
0 commit comments