src/vs/base/parts/request/common/request.ts

66 LOC · 58 covered · 8 uncovered · 3 ranges · 30 concepts · 1 introducers · 29 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filesrc/vs/platform/configuration/test/common/testConfigurationService.ts · 91 LOCcommon/testConfiguration…src/vs/platform/extensionManagement/common/extensionGalleryService.ts · 2045 LOCcommon/extensionGalleryS…src/vs/platform/externalServices/common/marketplace.ts · 39 LOCcommon/marketplace.tsmarketplace.ts ×1 · 24 introduced LOCmarketplace.ts ×1extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle both release and pre-release with same version replacement|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle complex scenario with multiple versions and platforms|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle replacement with non-compatible versions in between|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle mixed release and pre-release versions across multiple platforms|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle multiple specific platforms vs universal platform with version differences|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should filter versions for linux-x64 target platform with mixed universal and platform-specific versions|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include all non-compatible platform versions|occurrence=1, extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include one version per target platform for release versions|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should not replace when specific platform is for different platform|occurrence=1, extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include universal platform when no specific platforms conflict|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should prefer specific target platform over undefined when same version exists for both|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionManagement.ts ×1 · 2 introduced LOCextensionManagement.ts ×…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include latest prerelease and latest release versions for same platform|occurrence=1, extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include latest release and latest pre-release versions for same platform|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should keep only first compatible version when specific platform comes before undefined|occurrence=1, extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle higher version with specific platform vs lower version with universal platform|occurrence=1, +1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×1 · 2 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×1 · 6 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×1 · 2 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should return single version when only one version provided|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×1 · 4 introduced LOCextensionGalleryService.…extensionManagement.ts ×1 · 2 introduced LOCextensionManagement.ts ×…extensionManagement.ts ×3 · 9 introduced LOCextensionManagement.ts ×…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle versions without target platform (UNDEFINED)|occurrence=1 · 0 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×2 · 5 introduced LOCextensionGalleryService.…extensionManagement.ts ×1 · 2 introduced LOCextensionManagement.ts ×…extensionGalleryService.ts ×5 · 23 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×1 · 11 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×2 · 7 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×2 · 8 introduced LOCextensionGalleryService.…extensionManagement.ts ×1 · 20 introduced LOCextensionManagement.ts ×…extensionGalleryService.ts ×1 · 3 introduced LOCextensionGalleryService.…extensionGalleryService.ts ×69 · 504 introduced LOCextensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should filter versions for linux-x64 target platform with mixed universal and platform-specific versions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should filter versions for linux-x64 target platform with mixed universal and platform-specific versions|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle both release and pre-release with same version replacement|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle both release and pre-release with same version replacement|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle complex scenario with multiple versions and platforms|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle complex scenario with multiple versions and platforms|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle explicit UNIVERSAL platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle explicit UNIVERSAL platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle higher version with specific platform vs lower version with universal platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle higher version with specific platform vs lower version with universal platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle higher version with universal platform vs lower version with specific platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle higher version with universal platform vs lower version with specific platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle mixed release and pre-release versions across multiple platforms|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle mixed release and pre-release versions across multiple platforms|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle multiple specific platforms vs universal platform with version differences|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle multiple specific platforms vs universal platform with version differences|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle replacement with non-compatible versions in between|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle replacement with non-compatible versions in between|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle versions without target platform (UNDEFINED)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should handle versions without target platform (UNDEFINED)|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include all non-compatible platform versions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include all non-compatible platform versions|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include latest prerelease and latest release versions for same platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include latest prerelease and latest release versions for same platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include latest release and latest pre-release versions for same platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include latest release and latest pre-release versions for same platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include one version per target platform for release versions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include one version per target platform for release versions|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include universal platform when no specific platforms conflict|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should include universal platform when no specific platforms conflict|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should keep only first compatible version when specific platform comes before undefined|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should keep only first compatible version when specific platform comes before undefined|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should not replace when specific platform is for different platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should not replace when specific platform is for different platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should prefer specific target platform over undefined when same version exists for both|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should prefer specific target platform over undefined when same version exists for both|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should replace undefined pre-release with specific platform pre-release|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should replace undefined pre-release with specific platform pre-release|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should return empty array for empty input|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should return empty array for empty input|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should return single version when only one version provided|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service filterLatestExtensionVersionsForTargetPlatform should return single version when only one version provided|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service marketplace machine id|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service marketplace machine id|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions with target platforms - 1|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions with target platforms - 1|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions with target platforms - 2|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions with target platforms - 2|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions with target platforms - 3|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions with target platforms - 3|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions without target platforms|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting multiple extension versions without target platforms|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting single extension version with not compatible target platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting single extension version with not compatible target platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting single extension version with preferred target platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting single extension version with preferred target platform|occurrence=1extensionGalleryService.…extensionGalleryService.test|title=Extension Gallery Service sorting single extension version without target platform|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/extensionGalleryService.test|title=Extension Gallery Service sorting single extension version without target platform|occurrence=1extensionGalleryService.…Focused file · src/vs/base/parts/request/common/request.ts · 66 LOCcommon/request.ts

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- extensionGalleryService.ts ×69
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > import { VSBufferReadableStream } from '../../../common/buffer.js';
7 >
8 > const offlineName = 'Offline';
9 >
10 > /**
11 > * Checks if the given error is offline error
12 > */
13 > export function isOfflineError(error: unknown): boolean {
14 if (error instanceof OfflineError) {
15 return true;
16 }
17 return error instanceof Error && error.name === offlineName && error.message === offlineName;
18 }
20 > export class OfflineError extends Error {
21 > constructor() {
22 super(offlineName);
23 this.name = this.message;
24 }
26 >
27 > export interface IHeaders {
28 > 'Proxy-Authorization'?: string;
29 > 'x-operation-id'?: string;
30 > 'retry-after'?: string;
31 > etag?: string;
32 > 'Content-Length'?: string;
33 > 'activityid'?: string;
34 > 'X-Market-User-Id'?: string;
35 > [header: string]: string | string[] | undefined;
36 > }
37 >
38 > export interface IRequestOptions {
39 > type?: string;
40 > url?: string;
41 > user?: string;
42 > password?: string;
43 > headers?: IHeaders;
44 > timeout?: number;
45 > data?: string;
46 > followRedirects?: number;
47 > proxyAuthorization?: string;
48 > /**
49 > * A signal to not cache the response. This may not
50 > * be supported in all implementations.
51 > */
52 > disableCache?: boolean;
53 > /**
54 > * Identifies the call site making this request, used for telemetry.
55 > * Use "NO_FETCH_TELEMETRY" to opt out of request telemetry.
56 > */
57 > callSite: string;
58 > }
59 >
60 > export interface IRequestContext {
61 > res: {
62 > headers: IHeaders;
63 > statusCode?: number;
64 > };
65 > stream: VSBufferReadableStream;
66 > }