configurationModels.ts ×23

Frontier kind: Code frontier

unlabeled · c_4c6780f0a5e3

301 tests · 11428 LOC · 48 files · introduces 0 tests · 58 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
23 ranges58 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1631 ranges11428 lines · 48 files · Browse complete extent
All tests (intent)
301 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: 58 introduced LOC across 23 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/configuration/common/configurationModels.ts 58 introduced LOC · 23 ranges

Open complete file

729
730 constructor(
731 > private _defaultConfiguration: ConfigurationModel, configurationModels.ts
732 > private _policyConfiguration: ConfigurationModel,
733 > private _applicationConfiguration: ConfigurationModel,
734 > private _localUserConfiguration: ConfigurationModel,
735 > private _remoteUserConfiguration: ConfigurationModel,
736 > private _workspaceConfiguration: ConfigurationModel,
737 > private _folderConfigurations: ResourceMap<ConfigurationModel>,
738 > private _memoryConfiguration: ConfigurationModel,
739 > private _memoryConfigurationByResource: ResourceMap<ConfigurationModel>,
740 > private readonly logService: ILogService
741 > ) {
742 > }
743 >
744 > getValue(section: string | undefined, overrides: IConfigurationOverrides, workspace: Workspace | undefined): unknown {
745 const consolidateConfigurationModel = this.getConsolidatedConfigurationModel(section, overrides, workspace);
746 return consolidateConfigurationModel.getValue(section);
747 }
749 > updateValue(key: string, value: unknown, overrides: IConfigurationUpdateOverrides = {}): void {
750 let memoryConfiguration: ConfigurationModel | undefined;
751 if (overrides.resource) {
769 }
770 }
772 > inspect<C>(key: string, overrides: IConfigurationOverrides, workspace: Workspace | undefined): IConfigurationValue<C> {
773 const consolidateConfigurationModel = this.getConsolidatedConfigurationModel(key, overrides, workspace);
774 const folderConfigurationModel = this.getFolderConfigurationModelForResource(overrides.resource, workspace);
800
801 }
803 > keys(workspace: Workspace | undefined): {
804 default: string[];
805 policy: string[];
817 };
818 }
820 > updateDefaultConfiguration(defaultConfiguration: ConfigurationModel): void {
821 this._defaultConfiguration = defaultConfiguration;
822 this._workspaceConsolidatedConfiguration = null;
823 this._foldersConsolidatedConfigurations.clear();
824 }
826 > updatePolicyConfiguration(policyConfiguration: ConfigurationModel): void {
827 this._policyConfiguration = policyConfiguration;
828 }
830 > updateApplicationConfiguration(applicationConfiguration: ConfigurationModel): void {
831 this._applicationConfiguration = applicationConfiguration;
832 this._workspaceConsolidatedConfiguration = null;
833 this._foldersConsolidatedConfigurations.clear();
834 }
836 > updateLocalUserConfiguration(localUserConfiguration: ConfigurationModel): void {
837 this._localUserConfiguration = localUserConfiguration;
838 this._userConfiguration = null;
840 this._foldersConsolidatedConfigurations.clear();
841 }
843 > updateRemoteUserConfiguration(remoteUserConfiguration: ConfigurationModel): void {
844 this._remoteUserConfiguration = remoteUserConfiguration;
845 this._userConfiguration = null;
847 this._foldersConsolidatedConfigurations.clear();
848 }
850 > updateWorkspaceConfiguration(workspaceConfiguration: ConfigurationModel): void {
851 this._workspaceConfiguration = workspaceConfiguration;
852 this._workspaceConsolidatedConfiguration = null;
853 this._foldersConsolidatedConfigurations.clear();
854 }
856 > updateFolderConfiguration(resource: URI, configuration: ConfigurationModel): void {
857 this._folderConfigurations.set(resource, configuration);
858 this._foldersConsolidatedConfigurations.delete(resource);
859 }
861 > deleteFolderConfiguration(resource: URI): void {
862 this.folderConfigurations.delete(resource);
863 this._foldersConsolidatedConfigurations.delete(resource);
864 }
866 > compareAndUpdateDefaultConfiguration(defaults: ConfigurationModel, keys?: string[]): IConfigurationChange {
867 const overrides: [string, string[]][] = [];
868 if (!keys) {
885 return { keys, overrides };
886 }
888 > compareAndUpdatePolicyConfiguration(policyConfiguration: ConfigurationModel): IConfigurationChange {
889 const { added, updated, removed } = compare(this._policyConfiguration, policyConfiguration);
890 const keys = [...added, ...updated, ...removed];
894 return { keys, overrides: [] };
895 }
897 > compareAndUpdateApplicationConfiguration(application: ConfigurationModel): IConfigurationChange {
898 const { added, updated, removed, overrides } = compare(this.applicationConfiguration, application);
899 const keys = [...added, ...updated, ...removed];
903 return { keys, overrides };
904 }
906 > compareAndUpdateLocalUserConfiguration(user: ConfigurationModel): IConfigurationChange {
907 const { added, updated, removed, overrides } = compare(this.localUserConfiguration, user);
908 const keys = [...added, ...updated, ...removed];
912 return { keys, overrides };
913 }
915 > compareAndUpdateRemoteUserConfiguration(user: ConfigurationModel): IConfigurationChange {
916 const { added, updated, removed, overrides } = compare(this.remoteUserConfiguration, user);
917 const keys = [...added, ...updated, ...removed];
921 return { keys, overrides };
922 }
924 > compareAndUpdateWorkspaceConfiguration(workspaceConfiguration: ConfigurationModel): IConfigurationChange {
925 const { added, updated, removed, overrides } = compare(this.workspaceConfiguration, workspaceConfiguration);
926 const keys = [...added, ...updated, ...removed];
930 return { keys, overrides };
931 }
933 > compareAndUpdateFolderConfiguration(resource: URI, folderConfiguration: ConfigurationModel): IConfigurationChange {
934 const currentFolderConfiguration = this.folderConfigurations.get(resource);
935 const { added, updated, removed, overrides } = compare(currentFolderConfiguration, folderConfiguration);
940 return { keys, overrides };
941 }
943 > compareAndDeleteFolderConfiguration(folder: URI): IConfigurationChange {
944 const folderConfig = this.folderConfigurations.get(folder);
945 if (!folderConfig) {
950 return { keys: [...added, ...updated, ...removed], overrides };
951 }
953 > get defaults(): ConfigurationModel {
954 return this._defaultConfiguration;
955 }
957 > get applicationConfiguration(): ConfigurationModel {
958 return this._applicationConfiguration;
959 }
961 > private _userConfiguration: ConfigurationModel | null = null;
962 get userConfiguration(): ConfigurationModel {
963 if (!this._userConfiguration) {