mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
💄
This commit is contained in:
@@ -13,13 +13,16 @@ class Config
|
||||
configDirPath: configDirPath
|
||||
|
||||
load: ->
|
||||
if fs.exists(configJsonPath)
|
||||
userConfig = JSON.parse(fs.read(configJsonPath))
|
||||
_.extend(this, userConfig)
|
||||
@loadUserConfig()
|
||||
@assignDefaults()
|
||||
@registerNewExtensions()
|
||||
@requireUserInitScript()
|
||||
|
||||
loadUserConfig: ->
|
||||
if fs.exists(configJsonPath)
|
||||
userConfig = JSON.parse(fs.read(configJsonPath))
|
||||
_.extend(this, userConfig)
|
||||
|
||||
assignDefaults: ->
|
||||
@core ?= {}
|
||||
_.defaults(@core, require('root-view').configDefaults)
|
||||
|
||||
Reference in New Issue
Block a user