- Introduce policy model with file policy

- Introduce policy configuration using policy model
- Use policy configuration while reading, inspecting and writing configuration
- Adopt json settings editor
This commit is contained in:
Sandeep Somavarapu
2022-05-10 13:49:31 +02:00
parent dcfe6b3b84
commit e4c04ea2e9
26 changed files with 458 additions and 121 deletions
@@ -222,7 +222,7 @@ class SharedProcessMain extends Disposable {
fileService.registerProvider(Schemas.vscodeUserData, userDataFileSystemProvider);
// Configuration
const configurationService = this._register(new ConfigurationService(environmentService.settingsResource, fileService));
const configurationService = this._register(new ConfigurationService(environmentService.settingsResource, fileService, environmentService, logService));
services.set(IConfigurationService, configurationService);
// Storage (global access only)
+1 -1
View File
@@ -167,7 +167,7 @@ class CodeMain {
services.set(ILoggerService, new LoggerService(logService, fileService));
// Configuration
const configurationService = new ConfigurationService(environmentMainService.settingsResource, fileService);
const configurationService = new ConfigurationService(environmentMainService.settingsResource, fileService, environmentMainService, logService);
services.set(IConfigurationService, configurationService);
// Lifecycle
+1 -1
View File
@@ -129,7 +129,7 @@ class CliMain extends Disposable {
fileService.registerProvider(Schemas.file, diskFileSystemProvider);
// Configuration
const configurationService = this._register(new ConfigurationService(environmentService.settingsResource, fileService));
const configurationService = this._register(new ConfigurationService(environmentService.settingsResource, fileService, environmentService, logService));
services.set(IConfigurationService, configurationService);
// Init config