Start moving AtomEnvironment instantiation bits inside the snapshot

This commit is contained in:
Antonio Scandurra
2017-03-07 18:07:48 +01:00
parent b128b5de48
commit 44e3573fcb
4 changed files with 36 additions and 22 deletions

View File

@@ -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