configurationModels.ts ×5

Frontier kind: Code frontier

unlabeled · c_ea451d1d850c

161 tests · 11595 LOC · 48 files · introduces 0 tests · 41 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges41 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1684 ranges11595 lines · 48 files · Browse complete extent
All tests (intent)
161 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: 41 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/configuration/common/configurationModels.ts 41 introduced LOC · 5 ranges

Open complete file

553
554 constructor(
555 > private readonly key: string, configurationModels.ts
556 > private readonly overrides: IConfigurationOverrides,
557 > private readonly _value: V | undefined,
558 > readonly overrideIdentifiers: string[] | undefined,
559 > private readonly defaultConfiguration: ConfigurationModel,
560 > private readonly policyConfiguration: ConfigurationModel | undefined,
561 > private readonly applicationConfiguration: ConfigurationModel | undefined,
562 > private readonly userConfiguration: ConfigurationModel,
563 > private readonly localUserConfiguration: ConfigurationModel,
564 > private readonly remoteUserConfiguration: ConfigurationModel,
565 > private readonly workspaceConfiguration: ConfigurationModel | undefined,
566 > private readonly folderConfigurationModel: ConfigurationModel | undefined,
567 > private readonly memoryConfigurationModel: ConfigurationModel
568 > ) {
569 > }
570
571 get value(): V | undefined {
771
772 inspect<C>(key: string, overrides: IConfigurationOverrides, workspace: Workspace | undefined): IConfigurationValue<C> {
773 > const consolidateConfigurationModel = this.getConsolidatedConfigurationModel(key, overrides, workspace); configurationModels.ts
774 > const folderConfigurationModel = this.getFolderConfigurationModelForResource(overrides.resource, workspace);
775 > const memoryConfigurationModel = overrides.resource ? this._memoryConfigurationByResource.get(overrides.resource) || this._memoryConfiguration : this._memoryConfiguration;
776 > const overrideIdentifiers = new Set<string>();
777 > for (const override of consolidateConfigurationModel.overrides) {
778 for (const overrideIdentifier of override.identifiers) {
779 if (consolidateConfigurationModel.getOverrideValue(key, overrideIdentifier) !== undefined) {
782 }
783 }
785 > return new ConfigurationInspectValue<C>(
786 > key,
787 > overrides,
788 > consolidateConfigurationModel.getValue<C>(key),
789 > overrideIdentifiers.size ? [...overrideIdentifiers] : undefined,
790 > this._defaultConfiguration,
791 > this._policyConfiguration.isEmpty() ? undefined : this._policyConfiguration,
792 > this.applicationConfiguration.isEmpty() ? undefined : this.applicationConfiguration,
793 > this.userConfiguration,
794 > this.localUserConfiguration,
795 > this.remoteUserConfiguration,
796 > workspace ? this._workspaceConfiguration : undefined,
797 > folderConfigurationModel ? folderConfigurationModel : undefined,
798 > memoryConfigurationModel
799 > );
800 >
801 > }
802
803 keys(workspace: Workspace | undefined): {
1043
1044 private getFolderConfigurationModelForResource(resource: URI | null | undefined, workspace: Workspace | undefined): ConfigurationModel | undefined {
1045 > if (workspace && resource) { configurationModels.ts
1046 const root = workspace.getFolder(resource);
1047 if (root) {
1049 }
1050 }
1051 > return undefined; configurationModels.ts
1052 > }
1053
1054 toData(): IConfigurationData {