From 8910dd1a11321f503e17c735d78d2a2268f264d4 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 7 Oct 2014 17:33:08 -0700 Subject: [PATCH] Update to not new format from propertiesForSource --- spec/config-spec.coffee | 4 ++-- src/config.coffee | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/spec/config-spec.coffee b/spec/config-spec.coffee index 21c327533..8f6dad245 100644 --- a/spec/config-spec.coffee +++ b/spec/config-spec.coffee @@ -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' diff --git a/src/config.coffee b/src/config.coffee index 5ccb835c5..bda7f2014 100644 --- a/src/config.coffee +++ b/src/config.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) ###