mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Start moving AtomEnvironment instantiation bits inside the snapshot
This commit is contained in:
@@ -398,11 +398,13 @@ class Config
|
||||
value
|
||||
|
||||
# Created during initialization, available as `atom.config`
|
||||
constructor: ({@configDirPath, @resourcePath, @notificationManager, @enablePersistence}={}) ->
|
||||
constructor: ({@notificationManager, @enablePersistence}={}) ->
|
||||
@clear()
|
||||
|
||||
initialize: ({@configDirPath, @resourcePath}) ->
|
||||
if @enablePersistence?
|
||||
@configFilePath = fs.resolve(@configDirPath, 'config', ['json', 'cson'])
|
||||
@configFilePath ?= path.join(@configDirPath, 'config.cson')
|
||||
@clear()
|
||||
|
||||
clear: ->
|
||||
@emitter = new Emitter
|
||||
|
||||
Reference in New Issue
Block a user