(interpreter?: { id?: string })
| 212 | } |
| 213 | |
| 214 | export function getCachedVersion(interpreter?: { id?: string }) { |
| 215 | if (!interpreter?.id) { |
| 216 | return; |
| 217 | } |
| 218 | if (!pythonApi) { |
| 219 | throw new WrappedError('Python API not initialized', undefined, 'pythonAPINotInitialized'); |
| 220 | } |
| 221 | const cachedInfo = pythonApi.environments.known.find((i) => i.id === interpreter.id); |
| 222 | return cachedInfo?.version; |
| 223 | } |
| 224 | |
| 225 | export function getCachedEnvironments() { |
| 226 | if (!pythonApi) { |
no outgoing calls
no test coverage detected