|
| 1 | +import type { Pep440Version } from '@renovatebot/pep440'; |
1 | 2 | import { CancellationError, Disposable, Event, LogOutputChannel, MarkdownString, Uri } from 'vscode'; |
2 | 3 | import { |
3 | 4 | CreateEnvironmentOptions, |
@@ -28,7 +29,6 @@ import { |
28 | 29 | ResolveEnvironmentContext, |
29 | 30 | SetEnvironmentScope, |
30 | 31 | } from './api'; |
31 | | -import type { Pep440Version } from '@renovatebot/pep440'; |
32 | 32 | import { ISSUES_URL } from './common/constants'; |
33 | 33 | import { CreateEnvironmentNotSupported, RemoveEnvironmentNotSupported } from './common/errors/NotSupportedError'; |
34 | 34 | import { traceWarn } from './common/logging'; |
@@ -385,9 +385,12 @@ export class InternalPackageManager implements PackageManager { |
385 | 385 | return this.manager.getVersion ? this.manager.getVersion(environment) : Promise.resolve(undefined); |
386 | 386 | } |
387 | 387 |
|
388 | | - getAvailableVersions(packageName: string, environment: PythonEnvironment): Promise<Pep440Version[] | undefined> { |
389 | | - return this.manager.getAvailableVersions |
390 | | - ? this.manager.getAvailableVersions(packageName, environment) |
| 388 | + getPackageAvailableVersions( |
| 389 | + environment: PythonEnvironment, |
| 390 | + packageName: string, |
| 391 | + ): Promise<Pep440Version[] | undefined> { |
| 392 | + return this.manager.getPackageAvailableVersions |
| 393 | + ? this.manager.getPackageAvailableVersions(environment, packageName) |
391 | 394 | : Promise.resolve(undefined); |
392 | 395 | } |
393 | 396 |
|
|
0 commit comments