extensionsScannerService.ts ×5

Frontier kind: Joint frontier

unlabeled · c_177bb861a21c

1 test · 18887 LOC · 82 files · introduces 1 test · 21 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges21 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2971 ranges18887 lines · 82 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

1 file ranked by introduced lines: 21 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/extensionManagement/common/extensionsScannerService.ts 21 introduced LOC · 5 ranges

Open complete file

453 return [];
454 }
456 > this.logService.trace('Started scanning dev system extensions');
457 > const builtinExtensionControl = checkControlFile ? await this.getBuiltInExtensionControl() : {};
458 const devSystemExtensionsLocations: URI[] = [];
459 const devSystemExtensionsLocation = URI.file(path.normalize(path.join(FileAccess.asFileUri('').fsPath, '..', '.build', 'builtInExtensions')));
460 for (const extension of devSystemExtensionsList) {
461 > const controlState = builtinExtensionControl[extension.name] || 'marketplace'; extensionsScannerService.ts
462 > switch (controlState) {
463 > case 'disabled':
464 > break;
465 > case 'marketplace':
466 devSystemExtensionsLocations.push(joinPath(devSystemExtensionsLocation, extension.name));
467 break;
469 > devSystemExtensionsLocations.push(URI.file(controlState));
470 > break;
471 > }
472 > }
473 > const result = await Promise.all(devSystemExtensionsLocations.map(async location => this.extensionsScanner.scanExtension((await this.createExtensionScannerInput(location, false, ExtensionType.System, language, true, undefined, this.getProductVersion())))));
474 > this.logService.trace('Scanned dev system extensions:', result.length);
475 > return coalesce(result);
476 }
477
478 private async getBuiltInExtensionControl(): Promise<IBuiltInExtensionControl> {
480 > const content = await this.fileService.readFile(this.extensionsControlLocation);
481 > return JSON.parse(content.value.toString());
482 > } catch (error) {
483 return {};
484 }
486
487 private async createExtensionScannerInput(location: URI, profile: boolean, type: ExtensionType, language: string | undefined, validate: boolean, profileScanOptions: IProfileExtensionsScanOptions | undefined, productVersion: IProductVersion): Promise<ExtensionScannerInput> {