Skip to content

Commit 334795d

Browse files
committed
Add VSCode session id to gallery extension query
1 parent 4b48304 commit 334795d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,12 +923,14 @@ abstract class AbstractExtensionGalleryService implements IExtensionGalleryServi
923923

924924
const commonHeaders = await this.commonHeadersPromise;
925925
const data = JSON.stringify(query.raw);
926+
const { sessionId } = await this.telemetryService.getTelemetryInfo();
926927
const headers = {
927928
...commonHeaders,
928929
'Content-Type': 'application/json',
929930
'Accept': 'application/json;api-version=3.0-preview.1',
930931
'Accept-Encoding': 'gzip',
931-
'Content-Length': String(data.length)
932+
'Content-Length': String(data.length),
933+
'VSCode-SessionId': sessionId
932934
};
933935

934936
const startTime = new Date().getTime();

0 commit comments

Comments
 (0)