Raise PackageVersionLookupNotSupportedError - #1728
Conversation
|
🔒 Automated review in progress — Heejae Chang (@heejaechang) is auto-reviewing this PR. |
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
1c051d8 to
60345ad
Compare
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
a269452 to
60345ad
Compare
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
60345ad to
69697fd
Compare
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
|
heejae's review lgtm - I agree with those items and once those fixes are in I can approve it |
69697fd to
f9e1fda
Compare
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
f9e1fda to
57d27e4
Compare
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
Add an opt-in throw mode for callers that need to distinguish unsupported lookups from operational failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c801599-6aaa-4eb5-b4ed-23362ed54dbd
57d27e4 to
2c8db92
Compare
|
Verification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. |
Heejae Chang (heejaechang)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
Stella Huang (StellaHuang95)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
9a2c114
into
main
Fixes #1727
This pull request adds explicit package-version lookup errors without breaking existing callers.
API behavior
PackageVersionLookupNotSupportedErrorwith the stable codePackageVersionLookupNotSupported.isPackageVersionLookupNotSupportedError()for reliable detection across extension bundle boundaries.errorModeparameter toPythonPackageGetterApi.getPackageAvailableVersions():legacy: preserves the existing behavior and resolvesundefinedfor unsupported lookups and operational failures.throw: rejects withPackageVersionLookupNotSupportedErrorwhen lookup is unsupported and propagates operational failures unchanged.Promise<Pep440Version[]>, while legacy mode returnsPromise<Pep440Version[] | undefined>.Implementations
3.13.14.final.0are normalized for pip lookup.Package and tests
@vscode/python-environmentsto 1.3.0 and updates the API changelog and consumer type checks.