mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 23:59:22 +03:00
Update to not new format from propertiesForSource
This commit is contained in:
parent
c315631efd
commit
8910dd1a11
@ -230,11 +230,11 @@ describe "Config", ->
|
||||
expect(writtenConfig).toEqualJson
|
||||
global:
|
||||
atom.config.settings
|
||||
'*.ruby.source':
|
||||
'.ruby.source':
|
||||
foo:
|
||||
bar: 'ruby'
|
||||
omg: 'wow'
|
||||
'*.coffee.source':
|
||||
'.coffee.source':
|
||||
foo:
|
||||
bar: 'coffee'
|
||||
|
||||
|
@ -679,12 +679,8 @@ class Config
|
||||
@watchSubscription = null
|
||||
|
||||
save: ->
|
||||
allSettings = global: @settings
|
||||
|
||||
for settingsObject in @scopedSettingsStore.propertiesForSource('user-config')
|
||||
for selector, properties of settingsObject
|
||||
allSettings[selector] = properties
|
||||
|
||||
allSettings = @scopedSettingsStore.propertiesForSource('user-config')
|
||||
allSettings.global = @settings
|
||||
CSON.writeFileSync(@configFilePath, allSettings)
|
||||
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user