configurationRegistry.ts ×6

Frontier kind: Code frontier

unlabeled · c_ce226b7702d9

936 tests · 5587 LOC · 28 files · introduces 0 tests · 32 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges32 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
718 ranges5587 lines · 28 files · Browse complete extent
All tests (intent)
936 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: 32 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/configuration/common/configurationRegistry.ts 32 introduced LOC · 6 ranges

Open complete file

426
427 public registerDefaultConfigurations(configurationDefaults: IConfigurationDefaults[]): void {
428 > const properties = new Set<string>(); configurationRegistry.ts
429 > this.doRegisterDefaultConfigurations(configurationDefaults, properties);
430 > this._onDidSchemaChange.fire();
431 > this._onDidUpdateConfiguration.fire({ properties, defaultsOverrides: true });
432 > }
433
434 private doRegisterDefaultConfigurations(configurationDefaults: IConfigurationDefaults[], bucket: Set<string>) {
436 > this.registeredConfigurationDefaults.push(...configurationDefaults);
437 >
438 > const overrideIdentifiers: string[] = [];
439 >
440 > for (const { overrides, source } of configurationDefaults) {
441 > for (const key in overrides) {
442 > bucket.add(key);
443 >
444 > const configurationDefaultOverridesForKey = this.configurationDefaultsOverrides.get(key)
445 > ?? this.configurationDefaultsOverrides.set(key, { configurationDefaultOverrides: [] }).get(key)!;
446 >
447 > const value = overrides[key];
448 > configurationDefaultOverridesForKey.configurationDefaultOverrides.push({ value, source });
449 >
450 > // Configuration defaults for Override Identifiers
451 > if (OVERRIDE_PROPERTY_REGEX.test(key)) {
452 const newDefaultOverride = this.mergeDefaultConfigurationsForOverrideIdentifier(key, value as IStringDictionary<unknown>, source, configurationDefaultOverridesForKey.configurationDefaultOverrideValue);
453 if (!newDefaultOverride) {
474 }
475 }
477 > }
478 > }
479 >
480 > this.doRegisterOverrideIdentifiers(overrideIdentifiers);
481 > }
482
483 public deregisterDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[]): void {
673
674 private doRegisterOverrideIdentifiers(overrideIdentifiers: string[]) {
675 > for (const overrideIdentifier of overrideIdentifiers) { configurationRegistry.ts
676 this.overrideIdentifiers.add(overrideIdentifier);
677 }
678 > this.updateOverridePropertyPatternKey(); configurationRegistry.ts
679 > }
680
681 private doRegisterConfigurations(configurations: IConfigurationNode[], validate: boolean, bucket: Set<string>): void {
960 let defaultSource = undefined;
961 if (configurationdefaultOverride
962 > && (!property.disallowConfigurationDefault || !configurationdefaultOverride.source) // Prevent overriding the default value if the property is disallowed to be overridden by configuration defaults from extensions configurationRegistry.ts
963 ) {
964 defaultValue = configurationdefaultOverride.value;