You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
* Look up a preference in the given context. The default is
468
-
* CURRENT_FILE (preferences as they would be applied to the
469
-
* currently edited file).
470
-
*
471
-
* @param {string} id Preference ID to retrieve the value of
472
-
* @param {Object|string=} context CURRENT_FILE, CURRENT_PROJECT or a filename
473
-
*/
474
-
functionget(id,context){
475
-
context=_normalizeContext(context);
476
-
returnPreferencesImpl.manager.get(id,context);
477
-
}
478
-
479
-
/**
480
-
* Sets a preference and notifies listeners that there may
481
-
* have been a change. By default, the preference is set in the same location in which
482
-
* it was defined except for the "default" scope. If the current value of the preference
483
-
* comes from the "default" scope, the new value will be set at the level just above
484
-
* default.
485
-
*
486
-
* The preferences are saved automatically unless doNotSave is true.
487
-
*
488
-
* As with the `get()` function, the context can be a filename,
489
-
* CURRENT_FILE, CURRENT_PROJECT or a full context object as supported by
490
-
* PreferencesSystem.
491
-
*
492
-
* @param {string} id Identifier of the preference to set
493
-
* @param {Object} value New value for the preference
494
-
* @param {{location: ?Object, context: ?Object|string}=} options Specific location in which to set the value or the context to use when setting the value
495
-
* @param {boolean=} doNotSave True if the preference change should not be saved automatically.
496
-
* @return {valid: {boolean}, true if no validator specified or if value is valid
0 commit comments