[Fix] Implement platform specific URL format #238890
Draft
+4
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #238886
TLDR: Test with below steps
product.json
for multi-platform extensions (e.g.ms-python.debugpy
)npm run gulp compile-extensions-build
Please see the description in the related issue for how to test this in the linked issue.
The issue was that marketplace links required a URL query parameter for multi-platform extensions or it fails with HTTP 404 status (e.g.
?targetPlatform=linux-x64
).This was missing in the current implementation for the
build/lib/extensions.ts::fromMarketplace
function.Fixed this by checking the
platforms
list from theIExtensionDefinition
interface (as used inproduct.json
). If thisplatforms
key is specified and current platform is in the provided list then add the necessary URL query parameter for the marketplace service.This was tested by adding the below platforms in the
product.json
file:Related: #180525 / PR: #182072