extensionGalleryManifest.ts ×2

Frontier kind: Code frontier

unlabeled · c_7598ca348c11

221 tests · 15448 LOC · 67 files · introduces 0 tests · 87 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges87 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1943 ranges15448 lines · 67 files · Browse complete extent
All tests (intent)
221 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.

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

src/vs/platform/extensionManagement/common/extensionGalleryManifest.ts 87 introduced LOC · 2 ranges

Open complete file

1 > /*--------------------------------------------------------------------------------------------- extensionGalleryManifest.ts
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 { Event } from '../../../base/common/event.js';
7 > import { createDecorator } from '../../instantiation/common/instantiation.js';
8 >
9 > export const enum ExtensionGalleryResourceType {
10 > ExtensionQueryService = 'ExtensionQueryService',
11 > ExtensionLatestVersionUri = 'ExtensionLatestVersionUriTemplate',
12 > ExtensionStatisticsUri = 'ExtensionStatisticsUriTemplate',
13 > PublisherViewUri = 'PublisherViewUriTemplate',
14 > ExtensionDetailsViewUri = 'ExtensionDetailsViewUriTemplate',
15 > ExtensionRatingViewUri = 'ExtensionRatingViewUriTemplate',
16 > ExtensionResourceUri = 'ExtensionResourceUriTemplate',
17 > ContactSupportUri = 'ContactSupportUri',
18 > }
19 >
20 > export const enum Flag {
21 > None = 'None',
22 > IncludeVersions = 'IncludeVersions',
23 > IncludeFiles = 'IncludeFiles',
24 > IncludeCategoryAndTags = 'IncludeCategoryAndTags',
25 > IncludeSharedAccounts = 'IncludeSharedAccounts',
26 > IncludeVersionProperties = 'IncludeVersionProperties',
27 > ExcludeNonValidated = 'ExcludeNonValidated',
28 > IncludeInstallationTargets = 'IncludeInstallationTargets',
29 > IncludeAssetUri = 'IncludeAssetUri',
30 > IncludeStatistics = 'IncludeStatistics',
31 > IncludeLatestVersionOnly = 'IncludeLatestVersionOnly',
32 > Unpublished = 'Unpublished',
33 > IncludeNameConflictInfo = 'IncludeNameConflictInfo',
34 > IncludeLatestPrereleaseAndStableVersionOnly = 'IncludeLatestPrereleaseAndStableVersionOnly',
35 > }
36 >
37 > export type ExtensionGalleryManifestResource = {
38 > readonly id: string;
39 > readonly type: string;
40 > };
41 >
42 > export type ExtensionQueryCapabilityValue = {
43 > readonly name: string;
44 > readonly value: number;
45 > };
46 >
47 > export interface IExtensionGalleryManifest {
48 > readonly version: string;
49 > readonly resources: readonly ExtensionGalleryManifestResource[];
50 > readonly capabilities: {
51 > readonly extensionQuery: {
52 > readonly filtering?: readonly ExtensionQueryCapabilityValue[];
53 > readonly sorting?: readonly ExtensionQueryCapabilityValue[];
54 > readonly flags?: readonly ExtensionQueryCapabilityValue[];
55 > };
56 > readonly signing?: {
57 > readonly allPublicRepositorySigned: boolean;
58 > readonly allPrivateRepositorySigned?: boolean;
59 > };
60 > readonly extensions?: {
61 > readonly includePublicExtensions?: boolean;
62 > readonly includePrivateExtensions?: boolean;
63 > };
64 > };
65 > }
66 >
67 > export const enum ExtensionGalleryManifestStatus {
68 > Available = 'available',
69 > RequiresSignIn = 'requiresSignIn',
70 > AccessDenied = 'accessDenied',
71 > Unavailable = 'unavailable'
72 > }
73 >
74 > export const IExtensionGalleryManifestService = createDecorator<IExtensionGalleryManifestService>('IExtensionGalleryManifestService');
75 >
76 > export interface IExtensionGalleryManifestService {
77 > readonly _serviceBrand: undefined;
78 >
79 > readonly extensionGalleryManifestStatus: ExtensionGalleryManifestStatus;
80 > readonly onDidChangeExtensionGalleryManifestStatus: Event<ExtensionGalleryManifestStatus>;
81 > readonly onDidChangeExtensionGalleryManifest: Event<IExtensionGalleryManifest | null>;
82 > getExtensionGalleryManifest(): Promise<IExtensionGalleryManifest | null>;
83 > }
84 >
85 > export function getExtensionGalleryManifestResourceUri(manifest: IExtensionGalleryManifest, type: string): string | undefined {
86 const [name, version] = type.split('/');
87 for (const resource of manifest.resources) {
97 return undefined;
98 }
100 > export const ExtensionGalleryServiceUrlConfigKey = 'extensions.gallery.serviceUrl';