@codingame/monaco-vscode-configuration-service-override 4.5.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-configuration-service-override",
3
- "version": "4.5.2",
3
+ "version": "5.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@4.5.2",
30
- "@codingame/monaco-vscode-files-service-override": "4.5.2"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@5.0.0",
30
+ "@codingame/monaco-vscode-files-service-override": "5.0.0"
31
31
  }
32
32
  }
@@ -28,26 +28,8 @@ let TextResourceConfigurationService = class TextResourceConfigurationService ex
28
28
  if (configurationTarget === undefined) {
29
29
  configurationTarget = this.deriveConfigurationTarget(configurationValue, language);
30
30
  }
31
- switch (configurationTarget) {
32
- case 8 :
33
- return this._updateValue(key, value, configurationTarget, configurationValue.memory?.override, resource, language);
34
- case 6 :
35
- return this._updateValue(key, value, configurationTarget, configurationValue.workspaceFolder?.override, resource, language);
36
- case 5 :
37
- return this._updateValue(key, value, configurationTarget, configurationValue.workspace?.override, resource, language);
38
- case 4 :
39
- return this._updateValue(key, value, configurationTarget, configurationValue.userRemote?.override, resource, language);
40
- default:
41
- return this._updateValue(key, value, configurationTarget, configurationValue.userLocal?.override, resource, language);
42
- }
43
- }
44
- _updateValue(key, value, configurationTarget, overriddenValue, resource, language) {
45
- if (language && overriddenValue !== undefined) {
46
- return this.configurationService.updateValue(key, value, { resource, overrideIdentifier: language }, configurationTarget);
47
- }
48
- else {
49
- return this.configurationService.updateValue(key, value, { resource }, configurationTarget);
50
- }
31
+ const overrideIdentifier = language && configurationValue.overrideIdentifiers?.includes(language) ? language : undefined;
32
+ return this.configurationService.updateValue(key, value, { resource, overrideIdentifier }, configurationTarget);
51
33
  }
52
34
  deriveConfigurationTarget(configurationValue, language) {
53
35
  if (language) {
@@ -16,8 +16,8 @@ import { DefaultConfiguration as DefaultConfiguration$1 } from 'vscode/vscode/vs
16
16
 
17
17
  class DefaultConfiguration extends DefaultConfiguration$1 {
18
18
  static { this.DEFAULT_OVERRIDES_CACHE_EXISTS_KEY = 'DefaultOverridesCacheExists'; }
19
- constructor(configurationCache, environmentService) {
20
- super();
19
+ constructor(configurationCache, environmentService, logService) {
20
+ super(logService);
21
21
  this.configurationCache = configurationCache;
22
22
  this.configurationRegistry = ( Registry.as(Extensions.Configuration));
23
23
  this.cachedConfigurationDefaultsOverrides = {};
@@ -91,8 +91,8 @@ class DefaultConfiguration extends DefaultConfiguration$1 {
91
91
  }
92
92
  }
93
93
  class ApplicationConfiguration extends UserSettings {
94
- constructor(userDataProfilesService, fileService, uriIdentityService) {
95
- super(userDataProfilesService.defaultProfile.settingsResource, { scopes: [1 ] }, uriIdentityService.extUri, fileService);
94
+ constructor(userDataProfilesService, fileService, uriIdentityService, logService) {
95
+ super(userDataProfilesService.defaultProfile.settingsResource, { scopes: [1 ] }, uriIdentityService.extUri, fileService, logService);
96
96
  this._onDidChangeConfiguration = this._register(( new Emitter()));
97
97
  this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
98
98
  this._register(this.onDidChange(() => this.reloadConfigurationScheduler.schedule()));
@@ -131,7 +131,8 @@ class UserConfiguration extends Disposable {
131
131
  settingsResource,
132
132
  this.configurationParseOptions,
133
133
  uriIdentityService.extUri,
134
- this.fileService
134
+ this.fileService,
135
+ logService
135
136
  ));
136
137
  this.userConfigurationChangeDisposable.value = this.userConfiguration.value.onDidChange(() => this.reloadConfigurationScheduler.schedule());
137
138
  this.reloadConfigurationScheduler = this._register(( new RunOnceScheduler(
@@ -188,10 +189,10 @@ class FileServiceBasedConfiguration extends Disposable {
188
189
  resource => combinedDisposable(this.fileService.watch(uriIdentityService.extUri.dirname(resource)),
189
190
  this.fileService.watch(resource))
190
191
  ))));
191
- this._folderSettingsModelParser = ( new ConfigurationModelParser(name));
192
+ this._folderSettingsModelParser = ( new ConfigurationModelParser(name, logService));
192
193
  this._folderSettingsParseOptions = configurationParseOptions;
193
194
  this._standAloneConfigurations = [];
194
- this._cache = ( new ConfigurationModel());
195
+ this._cache = ConfigurationModel.createEmptyModel(this.logService);
195
196
  this._register(Event.debounce(Event.any(Event.filter(this.fileService.onDidFilesChange, e => this.handleFileChangesEvent(e)), Event.filter(this.fileService.onDidRunOperation, e => this.handleFileOperationEvent(e))), () => undefined, 100)(() => this._onDidChange.fire()));
196
197
  }
197
198
  async resolveContents(donotResolveSettings) {
@@ -229,7 +230,7 @@ class FileServiceBasedConfiguration extends Disposable {
229
230
  for (let index = 0; index < standAloneConfigurationContents.length; index++) {
230
231
  const contents = standAloneConfigurationContents[index][1];
231
232
  if (contents !== undefined) {
232
- const standAloneConfigurationModelParser = ( new StandaloneConfigurationModelParser(( this.standAloneConfigurationResources[index][1].toString()), this.standAloneConfigurationResources[index][0]));
233
+ const standAloneConfigurationModelParser = ( new StandaloneConfigurationModelParser(( this.standAloneConfigurationResources[index][1].toString()), this.standAloneConfigurationResources[index][0], this.logService));
233
234
  standAloneConfigurationModelParser.parse(contents);
234
235
  this._standAloneConfigurations.push(standAloneConfigurationModelParser.configurationModel);
235
236
  }
@@ -279,7 +280,7 @@ class FileServiceBasedConfiguration extends Disposable {
279
280
  }
280
281
  }
281
282
  class RemoteUserConfiguration extends Disposable {
282
- constructor(remoteAuthority, configurationCache, fileService, uriIdentityService, remoteAgentService) {
283
+ constructor(remoteAuthority, configurationCache, fileService, uriIdentityService, remoteAgentService, logService) {
283
284
  super();
284
285
  this._userConfigurationInitializationPromise = null;
285
286
  this._onDidChangeConfiguration = this._register(( new Emitter()));
@@ -287,14 +288,20 @@ class RemoteUserConfiguration extends Disposable {
287
288
  this._onDidInitialize = this._register(( new Emitter()));
288
289
  this.onDidInitialize = this._onDidInitialize.event;
289
290
  this._fileService = fileService;
290
- this._userConfiguration = this._cachedConfiguration = ( new CachedRemoteUserConfiguration(remoteAuthority, configurationCache, { scopes: REMOTE_MACHINE_SCOPES }));
291
+ this._userConfiguration = this._cachedConfiguration = ( new CachedRemoteUserConfiguration(
292
+ remoteAuthority,
293
+ configurationCache,
294
+ { scopes: REMOTE_MACHINE_SCOPES },
295
+ logService
296
+ ));
291
297
  remoteAgentService.getEnvironment().then(async (environment) => {
292
298
  if (environment) {
293
299
  const userConfiguration = this._register(( new FileServiceBasedRemoteUserConfiguration(
294
300
  environment.settingsPath,
295
301
  { scopes: REMOTE_MACHINE_SCOPES },
296
302
  this._fileService,
297
- uriIdentityService
303
+ uriIdentityService,
304
+ logService
298
305
  )));
299
306
  this._register(userConfiguration.onDidChangeConfiguration(configurationModel => this.onDidUserConfigurationChange(configurationModel)));
300
307
  this._userConfigurationInitializationPromise = userConfiguration.initialize();
@@ -346,16 +353,17 @@ class RemoteUserConfiguration extends Disposable {
346
353
  }
347
354
  }
348
355
  class FileServiceBasedRemoteUserConfiguration extends Disposable {
349
- constructor(configurationResource, configurationParseOptions, fileService, uriIdentityService) {
356
+ constructor(configurationResource, configurationParseOptions, fileService, uriIdentityService, logService) {
350
357
  super();
351
358
  this.configurationResource = configurationResource;
352
359
  this.fileService = fileService;
353
360
  this.uriIdentityService = uriIdentityService;
361
+ this.logService = logService;
354
362
  this._onDidChangeConfiguration = this._register(( new Emitter()));
355
363
  this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
356
364
  this.fileWatcherDisposable = this._register(( new MutableDisposable()));
357
365
  this.directoryWatcherDisposable = this._register(( new MutableDisposable()));
358
- this.parser = ( new ConfigurationModelParser(( this.configurationResource.toString())));
366
+ this.parser = ( new ConfigurationModelParser(( this.configurationResource.toString()), logService));
359
367
  this.parseOptions = configurationParseOptions;
360
368
  this._register(fileService.onDidFilesChange(e => this.handleFileChangesEvent(e)));
361
369
  this._register(fileService.onDidRunOperation(e => this.handleFileOperationEvent(e)));
@@ -397,7 +405,7 @@ class FileServiceBasedRemoteUserConfiguration extends Disposable {
397
405
  return this.parser.configurationModel;
398
406
  }
399
407
  catch (e) {
400
- return ( new ConfigurationModel());
408
+ return ConfigurationModel.createEmptyModel(this.logService);
401
409
  }
402
410
  }
403
411
  reparse(configurationParseOptions) {
@@ -440,15 +448,15 @@ class FileServiceBasedRemoteUserConfiguration extends Disposable {
440
448
  }
441
449
  }
442
450
  class CachedRemoteUserConfiguration extends Disposable {
443
- constructor(remoteAuthority, configurationCache, configurationParseOptions) {
451
+ constructor(remoteAuthority, configurationCache, configurationParseOptions, logService) {
444
452
  super();
445
453
  this.configurationCache = configurationCache;
446
454
  this._onDidChange = this._register(( new Emitter()));
447
455
  this.onDidChange = this._onDidChange.event;
448
456
  this.key = { type: 'user', key: remoteAuthority };
449
- this.parser = ( new ConfigurationModelParser('CachedRemoteUserConfiguration'));
457
+ this.parser = ( new ConfigurationModelParser('CachedRemoteUserConfiguration', logService));
450
458
  this.parseOptions = configurationParseOptions;
451
- this.configurationModel = ( new ConfigurationModel());
459
+ this.configurationModel = ConfigurationModel.createEmptyModel(logService);
452
460
  }
453
461
  getConfigurationModel() {
454
462
  return this.configurationModel;
@@ -501,7 +509,7 @@ class WorkspaceConfiguration extends Disposable {
501
509
  this.onDidUpdateConfiguration = this._onDidUpdateConfiguration.event;
502
510
  this._initialized = false;
503
511
  this.fileService = fileService;
504
- this._workspaceConfiguration = this._cachedConfiguration = ( new CachedWorkspaceConfiguration(configurationCache));
512
+ this._workspaceConfiguration = this._cachedConfiguration = ( new CachedWorkspaceConfiguration(configurationCache, logService));
505
513
  }
506
514
  async initialize(workspaceIdentifier, workspaceTrusted) {
507
515
  this._workspaceIdentifier = workspaceIdentifier;
@@ -589,8 +597,8 @@ class FileServiceBasedWorkspaceConfiguration extends Disposable {
589
597
  this._workspaceIdentifier = null;
590
598
  this._onDidChange = this._register(( new Emitter()));
591
599
  this.onDidChange = this._onDidChange.event;
592
- this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser(''));
593
- this.workspaceSettings = ( new ConfigurationModel());
600
+ this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser('', logService));
601
+ this.workspaceSettings = ConfigurationModel.createEmptyModel(logService);
594
602
  this._register(Event.any(Event.filter(this.fileService.onDidFilesChange, e => !!this._workspaceIdentifier && e.contains(this._workspaceIdentifier.configPath)), Event.filter(this.fileService.onDidRunOperation, e => !!this._workspaceIdentifier && (e.isOperation(0 ) || e.isOperation(3 ) || e.isOperation(1 ) || e.isOperation(4 )) && uriIdentityService.extUri.isEqual(e.resource, this._workspaceIdentifier.configPath)))(() => this.reloadConfigurationScheduler.schedule()));
595
603
  this.reloadConfigurationScheduler = this._register(( new RunOnceScheduler(() => this._onDidChange.fire(), 50)));
596
604
  this.workspaceConfigWatcher = this._register(this.watchWorkspaceConfigurationFile());
@@ -605,7 +613,7 @@ class FileServiceBasedWorkspaceConfiguration extends Disposable {
605
613
  async load(workspaceIdentifier, configurationParseOptions) {
606
614
  if (!this._workspaceIdentifier || this._workspaceIdentifier.id !== workspaceIdentifier.id) {
607
615
  this._workspaceIdentifier = workspaceIdentifier;
608
- this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser(this._workspaceIdentifier.id));
616
+ this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser(this._workspaceIdentifier.id, this.logService));
609
617
  dispose(this.workspaceConfigWatcher);
610
618
  this.workspaceConfigWatcher = this._register(this.watchWorkspaceConfigurationFile());
611
619
  }
@@ -650,11 +658,12 @@ class FileServiceBasedWorkspaceConfiguration extends Disposable {
650
658
  }
651
659
  }
652
660
  class CachedWorkspaceConfiguration {
653
- constructor(configurationCache) {
661
+ constructor(configurationCache, logService) {
654
662
  this.configurationCache = configurationCache;
663
+ this.logService = logService;
655
664
  this.onDidChange = Event.None;
656
- this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser(''));
657
- this.workspaceSettings = ( new ConfigurationModel());
665
+ this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser('', logService));
666
+ this.workspaceSettings = ConfigurationModel.createEmptyModel(logService);
658
667
  }
659
668
  async load(workspaceIdentifier, configurationParseOptions) {
660
669
  try {
@@ -662,7 +671,7 @@ class CachedWorkspaceConfiguration {
662
671
  const contents = await this.configurationCache.read(key);
663
672
  const parsed = JSON.parse(contents);
664
673
  if (parsed.content) {
665
- this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser(key.key));
674
+ this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser(key.key, this.logService));
666
675
  this.workspaceConfigurationModelParser.parse(parsed.content, configurationParseOptions);
667
676
  this.consolidate();
668
677
  }
@@ -717,14 +726,15 @@ class CachedWorkspaceConfiguration {
717
726
  }
718
727
  }
719
728
  class CachedFolderConfiguration {
720
- constructor(folder, configFolderRelativePath, configurationParseOptions, configurationCache) {
729
+ constructor(folder, configFolderRelativePath, configurationParseOptions, configurationCache, logService) {
721
730
  this.configurationCache = configurationCache;
731
+ this.logService = logService;
722
732
  this.onDidChange = Event.None;
723
733
  this.key = { type: 'folder', key: ( hash(( joinPath(folder, configFolderRelativePath).toString())).toString(16)) };
724
- this._folderSettingsModelParser = ( new ConfigurationModelParser('CachedFolderConfiguration'));
734
+ this._folderSettingsModelParser = ( new ConfigurationModelParser('CachedFolderConfiguration', logService));
725
735
  this._folderSettingsParseOptions = configurationParseOptions;
726
736
  this._standAloneConfigurations = [];
727
- this.configurationModel = ( new ConfigurationModel());
737
+ this.configurationModel = ConfigurationModel.createEmptyModel(logService);
728
738
  }
729
739
  async loadConfiguration() {
730
740
  try {
@@ -736,7 +746,7 @@ class CachedFolderConfiguration {
736
746
  this._folderSettingsModelParser.parse(configurationContents[key], this._folderSettingsParseOptions);
737
747
  }
738
748
  else {
739
- const standAloneConfigurationModelParser = ( new StandaloneConfigurationModelParser(key, key));
749
+ const standAloneConfigurationModelParser = ( new StandaloneConfigurationModelParser(key, key, this.logService));
740
750
  standAloneConfigurationModelParser.parse(configurationContents[key]);
741
751
  this._standAloneConfigurations.push(standAloneConfigurationModelParser.configurationModel);
742
752
  }
@@ -796,7 +806,8 @@ class FolderConfiguration extends Disposable {
796
806
  workspaceFolder.uri,
797
807
  configFolderRelativePath,
798
808
  { scopes: this.scopes, skipRestricted: this.isUntrusted() },
799
- configurationCache
809
+ configurationCache,
810
+ logService
800
811
  ));
801
812
  if (useCache && this.configurationCache.needsCaching(workspaceFolder.uri)) {
802
813
  this.folderConfiguration = this.cachedFolderConfiguration;
@@ -78,20 +78,21 @@ class WorkspaceService extends Disposable {
78
78
  this.configurationRegistry = ( (Registry.as(Extensions.Configuration)));
79
79
  this.initRemoteUserConfigurationBarrier = ( (new Barrier()));
80
80
  this.completeWorkspaceBarrier = ( (new Barrier()));
81
- this.defaultConfiguration = this._register(( (new DefaultConfiguration(configurationCache, environmentService))));
81
+ this.defaultConfiguration = this._register(( (new DefaultConfiguration(configurationCache, environmentService, logService))));
82
82
  this.policyConfiguration = policyService instanceof NullPolicyService ? ( (new NullPolicyConfiguration())) : this._register(( (new PolicyConfiguration(this.defaultConfiguration, policyService, logService))));
83
83
  this.configurationCache = configurationCache;
84
84
  this._configuration = ( (new Configuration(
85
85
  this.defaultConfiguration.configurationModel,
86
86
  this.policyConfiguration.configurationModel,
87
- (new ConfigurationModel()),
88
- (new ConfigurationModel()),
89
- (new ConfigurationModel()),
90
- (new ConfigurationModel()),
87
+ ConfigurationModel.createEmptyModel(logService),
88
+ ConfigurationModel.createEmptyModel(logService),
89
+ ConfigurationModel.createEmptyModel(logService),
90
+ ConfigurationModel.createEmptyModel(logService),
91
91
  (new ResourceMap()),
92
- (new ConfigurationModel()),
92
+ ConfigurationModel.createEmptyModel(logService),
93
93
  (new ResourceMap()),
94
- this.workspace
94
+ this.workspace,
95
+ logService
95
96
  )));
96
97
  this.applicationConfigurationDisposables = this._register(( (new DisposableStore())));
97
98
  this.createApplicationConfiguration();
@@ -111,7 +112,8 @@ class WorkspaceService extends Disposable {
111
112
  configurationCache,
112
113
  fileService,
113
114
  uriIdentityService,
114
- remoteAgentService
115
+ remoteAgentService,
116
+ logService
115
117
  ))));
116
118
  this._register(remoteUserConfiguration.onDidInitialize(remoteUserConfigurationModel => {
117
119
  this._register(remoteUserConfiguration.onDidChangeConfiguration(remoteUserConfigurationModel => this.onRemoteUserConfigurationChanged(remoteUserConfigurationModel)));
@@ -140,7 +142,12 @@ class WorkspaceService extends Disposable {
140
142
  this.applicationConfiguration = null;
141
143
  }
142
144
  else {
143
- this.applicationConfiguration = this.applicationConfigurationDisposables.add(this._register(( (new ApplicationConfiguration(this.userDataProfilesService, this.fileService, this.uriIdentityService)))));
145
+ this.applicationConfiguration = this.applicationConfigurationDisposables.add(this._register(( (new ApplicationConfiguration(
146
+ this.userDataProfilesService,
147
+ this.fileService,
148
+ this.uriIdentityService,
149
+ this.logService
150
+ )))));
144
151
  this.applicationConfigurationDisposables.add(this.applicationConfiguration.onDidChangeConfiguration(configurationModel => this.onApplicationConfigurationChanged(configurationModel)));
145
152
  }
146
153
  }
@@ -507,10 +514,10 @@ class WorkspaceService extends Disposable {
507
514
  async initializeConfiguration(trigger) {
508
515
  await this.defaultConfiguration.initialize();
509
516
  const initPolicyConfigurationPromise = this.policyConfiguration.initialize();
510
- const initApplicationConfigurationPromise = this.applicationConfiguration ? this.applicationConfiguration.initialize() : Promise.resolve(( (new ConfigurationModel())));
517
+ const initApplicationConfigurationPromise = this.applicationConfiguration ? this.applicationConfiguration.initialize() : Promise.resolve(ConfigurationModel.createEmptyModel(this.logService));
511
518
  const initUserConfiguration = async () => {
512
519
  mark('code/willInitUserConfiguration');
513
- const result = await Promise.all([this.localUserConfiguration.initialize(), this.remoteUserConfiguration ? this.remoteUserConfiguration.initialize() : Promise.resolve(( (new ConfigurationModel())))]);
520
+ const result = await Promise.all([this.localUserConfiguration.initialize(), this.remoteUserConfiguration ? this.remoteUserConfiguration.initialize() : Promise.resolve(ConfigurationModel.createEmptyModel(this.logService))]);
514
521
  if (this.applicationConfiguration) {
515
522
  const applicationConfigurationModel = await initApplicationConfigurationPromise;
516
523
  result[0] = this.localUserConfiguration.reparse({ exclude: applicationConfigurationModel.getValue(APPLY_ALL_PROFILES_SETTING) });
@@ -532,9 +539,7 @@ class WorkspaceService extends Disposable {
532
539
  }
533
540
  async reloadApplicationConfiguration(donotTrigger) {
534
541
  if (!this.applicationConfiguration) {
535
- return (
536
- (new ConfigurationModel())
537
- );
542
+ return ConfigurationModel.createEmptyModel(this.logService);
538
543
  }
539
544
  const model = await this.applicationConfiguration.loadConfiguration();
540
545
  if (!donotTrigger) {
@@ -561,9 +566,7 @@ class WorkspaceService extends Disposable {
561
566
  }
562
567
  return model;
563
568
  }
564
- return (
565
- (new ConfigurationModel())
566
- );
569
+ return ConfigurationModel.createEmptyModel(this.logService);
567
570
  }
568
571
  async reloadWorkspaceConfiguration() {
569
572
  const workbenchState = this.getWorkbenchState();
@@ -593,9 +596,10 @@ class WorkspaceService extends Disposable {
593
596
  remoteUserConfigurationModel,
594
597
  workspaceConfiguration,
595
598
  folderConfigurationModels,
596
- (new ConfigurationModel()),
599
+ ConfigurationModel.createEmptyModel(this.logService),
597
600
  (new ResourceMap()),
598
- this.workspace
601
+ this.workspace,
602
+ this.logService
599
603
  )));
600
604
  this.initialized = true;
601
605
  if (trigger) {
@@ -611,9 +615,7 @@ class WorkspaceService extends Disposable {
611
615
  case 3 :
612
616
  return this.workspaceConfiguration.getConfiguration();
613
617
  default:
614
- return (
615
- (new ConfigurationModel())
616
- );
618
+ return ConfigurationModel.createEmptyModel(this.logService);
617
619
  }
618
620
  }
619
621
  onUserDataProfileChanged(e) {
@@ -980,7 +982,7 @@ class WorkspaceService extends Disposable {
980
982
  if (target !== 7 ) {
981
983
  this.logService.debug(`Configuration keys changed in ${ConfigurationTargetToString(target)} target`, ...change.keys);
982
984
  }
983
- const configurationChangeEvent = ( (new ConfigurationChangeEvent(change, previous, this._configuration, this.workspace)));
985
+ const configurationChangeEvent = ( (new ConfigurationChangeEvent(change, previous, this._configuration, this.workspace, this.logService)));
984
986
  configurationChangeEvent.source = target;
985
987
  this._onDidChangeConfiguration.fire(configurationChangeEvent);
986
988
  }
@@ -5,13 +5,13 @@ import { isBoolean } from 'vscode/vscode/vs/base/common/types';
5
5
  import { distinct } from 'vscode/vscode/vs/base/common/arrays';
6
6
 
7
7
  class WorkspaceConfigurationModelParser extends ConfigurationModelParser {
8
- constructor(name) {
9
- super(name);
8
+ constructor(name, logService) {
9
+ super(name, logService);
10
10
  this._folders = [];
11
11
  this._transient = false;
12
- this._settingsModelParser = ( new ConfigurationModelParser(name));
13
- this._launchModel = ( new ConfigurationModel());
14
- this._tasksModel = ( new ConfigurationModel());
12
+ this._settingsModelParser = ( new ConfigurationModelParser(name, logService));
13
+ this._launchModel = ConfigurationModel.createEmptyModel(logService);
14
+ this._tasksModel = ConfigurationModel.createEmptyModel(logService);
15
15
  }
16
16
  get folders() {
17
17
  return this._folders;
@@ -49,14 +49,14 @@ class WorkspaceConfigurationModelParser extends ConfigurationModelParser {
49
49
  const scopedContents = Object.create(null);
50
50
  scopedContents[key] = contents;
51
51
  const keys = ( ( Object.keys(data)).map(k => `${key}.${k}`));
52
- return ( new ConfigurationModel(scopedContents, keys, []));
52
+ return ( new ConfigurationModel(scopedContents, keys, [], undefined, this.logService));
53
53
  }
54
- return ( new ConfigurationModel());
54
+ return ConfigurationModel.createEmptyModel(this.logService);
55
55
  }
56
56
  }
57
57
  class StandaloneConfigurationModelParser extends ConfigurationModelParser {
58
- constructor(name, scope) {
59
- super(name);
58
+ constructor(name, scope, logService) {
59
+ super(name, logService);
60
60
  this.scope = scope;
61
61
  }
62
62
  doParseRaw(raw, configurationParseOptions) {
@@ -68,8 +68,8 @@ class StandaloneConfigurationModelParser extends ConfigurationModelParser {
68
68
  }
69
69
  }
70
70
  class Configuration extends Configuration$1 {
71
- constructor(defaults, policy, application, localUser, remoteUser, workspaceConfiguration, folders, memoryConfiguration, memoryConfigurationByResource, _workspace) {
72
- super(defaults, policy, application, localUser, remoteUser, workspaceConfiguration, folders, memoryConfiguration, memoryConfigurationByResource);
71
+ constructor(defaults, policy, application, localUser, remoteUser, workspaceConfiguration, folders, memoryConfiguration, memoryConfigurationByResource, _workspace, logService) {
72
+ super(defaults, policy, application, localUser, remoteUser, workspaceConfiguration, folders, memoryConfiguration, memoryConfigurationByResource, logService);
73
73
  this._workspace = _workspace;
74
74
  }
75
75
  getValue(key, overrides = {}) {