Protected
Readonly
_Protected
Readonly
_Protected
Readonly
defaultProtected
Readonly
defaultEvent emitters
Protected
Readonly
jsonProtected
nextProtected
nextReadonly
onPublic events
Readonly
onProtected
Readonly
preferenceProtected
Readonly
propertiesProtected
Readonly
schemaProtected
Readonly
schemasStorage structures
Readonly
validThe scopes which this preference schema service handles. Any properties that are not applicable within the valid scopes will be ignored
Resolves after static contributions have been processed
Add a preference schema. It is an error to register the same property in two different schemas
The schema to add
A disposable to remove the schema
Protected
changeGet the default value for a preference. This is the value a client will see for the given key/override
The preference key
The override identifier, undefined for global default
The default value or undefined if not found
Gets a JSON schema a preference.json file for the given scope.
The scope to generate schema for
The JSON schema
Protected
initGets the default value for a preference. This method not fall back to the global value if no override is given
The preference key
The override identifier, undefined for global default
The default value or undefined if not found
Check if a preference is valid in a specific scope
The preference name
The scope to check
True if the preference is valid in the given scope
Register an override for a preference default value. If multiple overrides are registered for the same value, the last override will be in effect. Removing the last override will make the second-to-last override active, etc.
The preference key
The override identifier, undefined for global default
The default value
A disposable to unregister the override
Register an override identifier for language specific preferences
The identifier to register
A disposable to unregister the identifier
Protected
removeUpdate a property in the schema. The corresponding JSON Schemas, etc. will be updated
The property key
The updated property
This map stores default overrides. The primary map key is the base preference name. The preference name maps to a second map keyed by the override identifier or a special object value `NO_OVERRIDE', representing default overrides for the base property. The value in this second map is an array of entries in reverse order of their insertion. This is necessary becuaus multiple clients might register overrides for the same preference key/override combination. The elements in this array consist of a unique, generated identifier and the actual override value. This allows us to always return the last registerd override even when overrides are later removed.