MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / getEnvironmentType

Function getEnvironmentType

src/platform/interpreter/helpers.ts:87–90  ·  view source on GitHub ↗
(interpreter: { id: string })

Source from the content-addressed store, hash-verified

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

Calls 2

getCachedEnvironmentFunction · 0.85
getEnvironmentTypeImplFunction · 0.85

Tested by

no test coverage detected