mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Set config schema entirely in the snapshot
This commit is contained in:
@@ -401,11 +401,13 @@ class Config
|
||||
constructor: ({@notificationManager, @enablePersistence}={}) ->
|
||||
@clear()
|
||||
|
||||
initialize: ({@configDirPath, @resourcePath}) ->
|
||||
initialize: ({@configDirPath, @resourcePath, projectHomeSchema}) ->
|
||||
if @enablePersistence?
|
||||
@configFilePath = fs.resolve(@configDirPath, 'config', ['json', 'cson'])
|
||||
@configFilePath ?= path.join(@configDirPath, 'config.cson')
|
||||
|
||||
@schema.properties.core.properties.projectHome = projectHomeSchema
|
||||
|
||||
clear: ->
|
||||
@emitter = new Emitter
|
||||
@schema =
|
||||
|
||||
Reference in New Issue
Block a user