extensionGalleryService.ts ×5

Frontier kind: Code frontier

unlabeled · c_85a0a1191e43

20 tests · 17353 LOC · 79 files · introduces 0 tests · 23 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges23 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2360 ranges17353 lines · 79 files · Browse complete extent
All tests (intent)
20 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

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 native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 23 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/extensionManagement/common/extensionGalleryService.ts 15 introduced LOC · 5 ranges

Open complete file

354 }
355
356 > function isPreReleaseVersion(version: IRawGalleryExtensionVersion): boolean { extensionGalleryService.ts
357 > const values = version.properties ? version.properties.filter(p => p.key === PropertyType.PreRelease) : [];
358 > return values.length > 0 && values[0].value === 'true';
359 > }
360
361 function hasPreReleaseForExtension(id: string, productService: IProductService): boolean | undefined {
472 let releaseVersionIndex: number = -1;
473 for (const version of versions) {
474 > const versionTargetPlatform = getTargetPlatformForExtensionVersion(version); extensionGalleryService.ts
475 > const isCompatibleWithTargetPlatform = isTargetPlatformCompatible(versionTargetPlatform, allTargetPlatforms, targetPlatform);
476 >
477 > // Always include versions that are NOT compatible with the target platform
478 > if (!isCompatibleWithTargetPlatform) {
479 latestVersions.push(version);
480 continue;
481 }
483 > // For compatible versions, only include the first (latest) of each type
484 > // Prefer specific target platform matches over undefined/universal platforms only when version numbers are the same
485 > if (isPreReleaseVersion(version)) {
486 if (preReleaseVersionIndex === -1) {
487 preReleaseVersionIndex = latestVersions.length;
490 latestVersions[preReleaseVersionIndex] = version;
491 }
493 if (releaseVersionIndex === -1) {
494 releaseVersionIndex = latestVersions.length;
src/vs/platform/extensionManagement/common/extensionManagement.ts 8 introduced LOC · 3 ranges

Open complete file

131
132 export function isNotWebExtensionInWebTargetPlatform(allTargetPlatforms: TargetPlatform[], productTargetPlatform: TargetPlatform): boolean {
133 > // Not a web extension in web target platform extensionManagement.ts
134 > return productTargetPlatform === TargetPlatform.WEB && !allTargetPlatforms.includes(TargetPlatform.WEB);
135 > }
136
137 export function isTargetPlatformCompatible(extensionTargetPlatform: TargetPlatform, allTargetPlatforms: TargetPlatform[], productTargetPlatform: TargetPlatform): boolean {
138 > // Not compatible when extension is not a web extension in web target platform extensionManagement.ts
139 > if (isNotWebExtensionInWebTargetPlatform(allTargetPlatforms, productTargetPlatform)) {
140 return false;
141 }
143 > // Compatible when extension target platform is not defined
144 > if (extensionTargetPlatform === TargetPlatform.UNDEFINED) {
145 return true;
146 }