Typesafe schema-based preferences utility based on the PreferenceService. Can be used to get preferences as well as listen to preference changes.
See createPreferenceProxy on how to instantiate preference proxies.
preferences.onPreferenceChanged(({ preferenceName, newValue }) => { ... });const enabled = preferences['myext.enabled']; Copy
preferences.onPreferenceChanged(({ preferenceName, newValue }) => { ... });const enabled = preferences['myext.enabled'];
Typesafe schema-based preferences utility based on the PreferenceService. Can be used to get preferences as well as listen to preference changes.
See createPreferenceProxy on how to instantiate preference proxies.
Example usage