From 2f190025a98b70ecb85f6acb5dbffe774e93df7d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 20 Mar 2013 10:59:54 -0600 Subject: [PATCH] Use new parseFileSync method of plist npm --- src/app/text-mate-theme.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/text-mate-theme.coffee b/src/app/text-mate-theme.coffee index 956bcbdf1..2424bc2d3 100644 --- a/src/app/text-mate-theme.coffee +++ b/src/app/text-mate-theme.coffee @@ -18,10 +18,9 @@ class TextMateTheme extends Theme super buildRulesets: -> - plist.parseString fs.read(@path), (error, [{settings}]) => - throw new Error("Error loading theme at '#{@path}': #{error}") if error - @buildGlobalSettingsRulesets(settings[0]) - @buildScopeSelectorRulesets(settings[1..]) + {settings} = plist.parseFileSync(@path) + @buildGlobalSettingsRulesets(settings[0]) + @buildScopeSelectorRulesets(settings[1..]) getStylesheet: -> lines = []