Skip to content

Commit 897d441

Browse files
committed
Update user agent header of MP requests
1 parent 1063c31 commit 897d441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/platform/extensionManagement/common/extensionGalleryService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,8 @@ export async function resolveMarketplaceHeaders(version: string, productService:
10201020
} | undefined): Promise<{ [key: string]: string; }> {
10211021
const headers: IHeaders = {
10221022
'X-Market-Client-Id': `VSCode ${version}`,
1023-
'User-Agent': `VSCode ${version}`
1023+
'X-Market-Client-Version': version,
1024+
'User-Agent': `VSCode (${productService.nameShort})`,
10241025
};
10251026
const uuid = await getServiceMachineId(environmentService, fileService, storageService);
10261027
if (supportsTelemetry(productService, environmentService) && getTelemetryLevel(configurationService) === TelemetryLevel.USAGE) {

0 commit comments

Comments
 (0)