(interpreter: { id: string })
| 85 | ]; |
| 86 | |
| 87 | export function getEnvironmentType(interpreter: { id: string }): EnvironmentType { |
| 88 | const env = getCachedEnvironment(interpreter); |
| 89 | return env ? getEnvironmentTypeImpl(env) : EnvironmentType.Unknown; |
| 90 | } |
| 91 | function getEnvironmentTypeImpl(env: Environment): EnvironmentType { |
| 92 | if ((env.environment?.type as KnownEnvironmentTypes) === 'Conda') { |
| 93 | return EnvironmentType.Conda; |
no test coverage detected