mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Return a cloned object from config.get()
This prevents mutations to the values of the default settings.
This commit is contained in:
@@ -48,11 +48,6 @@ the following way:
|
||||
```coffeescript
|
||||
# basic key update
|
||||
config.set("core.autosave", true)
|
||||
|
||||
# if you mutate a config key, you'll need to call `config.update` to inform
|
||||
# observers of the change
|
||||
config.get("fuzzyFinder.ignoredPaths").push "vendor"
|
||||
config.update()
|
||||
```
|
||||
|
||||
You can also use `setDefaults`, which will assign default values for keys that
|
||||
|
||||
Reference in New Issue
Block a user