configurationService.ts ×2

Frontier kind: Code frontier

unlabeled · c_954b6907e218

276 tests · 14188 LOC · 59 files · introduces 0 tests · 50 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges50 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2235 ranges14188 lines · 59 files · Browse complete extent
All tests (intent)
276 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.

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

src/vs/platform/configuration/common/configurationService.ts 34 introduced LOC · 2 ranges

Open complete file

41
42 constructor(
43 > private readonly settingsResource: URI, configurationService.ts
44 > fileService: IFileService,
45 > policyService: IPolicyService,
46 > private readonly logService: ILogService,
47 > ) {
48 > super();
49 > this.defaultConfiguration = this._register(new DefaultConfiguration(logService));
50 > this.policyConfiguration = policyService instanceof NullPolicyService ? new NullPolicyConfiguration() : this._register(new PolicyConfiguration(this.defaultConfiguration, policyService, logService));
51 > this.userConfiguration = this._register(new UserSettings(this.settingsResource, {}, extUriBiasedIgnorePathCase, fileService, logService));
52 > this.configuration = new Configuration(
53 > this.defaultConfiguration.configurationModel,
54 > this.policyConfiguration.configurationModel,
55 > ConfigurationModel.createEmptyModel(logService),
56 > ConfigurationModel.createEmptyModel(logService),
57 > ConfigurationModel.createEmptyModel(logService),
58 > ConfigurationModel.createEmptyModel(logService),
59 > new ResourceMap<ConfigurationModel>(),
60 > ConfigurationModel.createEmptyModel(logService),
61 > new ResourceMap<ConfigurationModel>(),
62 > logService
63 > );
64 > this.configurationEditing = new ConfigurationEditing(settingsResource, fileService, this);
65 >
66 > this.reloadConfigurationScheduler = this._register(new RunOnceScheduler(() => this.reloadConfiguration(), 50));
67 > this._register(this.defaultConfiguration.onDidChangeConfiguration(({ defaults, properties }) => this.onDidDefaultConfigurationChange(defaults, properties)));
68 > this._register(this.policyConfiguration.onDidChangeConfiguration(model => this.onDidPolicyConfigurationChange(model)));
69 > this._register(this.userConfiguration.onDidChange(() => this.reloadConfigurationScheduler.schedule()));
70 > }
71
72 async initialize(): Promise<void> {
193
194 constructor(
195 > private readonly settingsResource: URI, configurationService.ts
196 > private readonly fileService: IFileService,
197 > private readonly configurationService: IConfigurationService,
198 > ) {
199 > this.queue = new Queue<void>();
200 > }
201
202 write(path: JSONPath, value: unknown): Promise<void> {
src/vs/platform/configuration/common/configurationModels.ts 16 introduced LOC · 1 range

Open complete file

510
511 constructor(
512 > private readonly userSettingsResource: URI, configurationModels.ts
513 > protected parseOptions: ConfigurationParseOptions,
514 > extUri: IExtUri,
515 > private readonly fileService: IFileService,
516 > private readonly logService: ILogService,
517 > ) {
518 > super();
519 > this.parser = new ConfigurationModelParser(this.userSettingsResource.toString(), logService);
520 > this._register(this.fileService.watch(extUri.dirname(this.userSettingsResource)));
521 > // Also listen to the resource incase the resource is a symlink - https://github.com/microsoft/vscode/issues/118134
522 > this._register(this.fileService.watch(this.userSettingsResource));
523 > this._register(Event.any(
524 > Event.filter(this.fileService.onDidFilesChange, e => e.contains(this.userSettingsResource)),
525 > Event.filter(this.fileService.onDidRunOperation, e => (e.isOperation(FileOperation.CREATE) || e.isOperation(FileOperation.COPY) || e.isOperation(FileOperation.DELETE) || e.isOperation(FileOperation.WRITE)) && extUri.isEqual(e.resource, userSettingsResource))
526 > )(() => this._onDidChange.fire()));
527 > }
528
529 async loadConfiguration(): Promise<ConfigurationModel> {