From a1e1bee3344bd1ef809cc22842c99a9929b6ba85 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Fri, 29 Mar 2013 15:00:24 -0700 Subject: [PATCH] Allow theme's package.cson to leave off stylesheet extension --- src/app/atom-theme.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/atom-theme.coffee b/src/app/atom-theme.coffee index 06f765118..3fab3f9e7 100644 --- a/src/app/atom-theme.coffee +++ b/src/app/atom-theme.coffee @@ -16,7 +16,9 @@ class AtomTheme extends Theme if fs.isFile(metadataPath) stylesheetNames = CSON.readObject(metadataPath)?.stylesheets if stylesheetNames - @loadStylesheet(fs.join(@path, name)) for name in stylesheetNames + for name in stylesheetNames + filename = fs.resolveExtension(fs.join(@path, name), ['.css', '.less', '']) + @loadStylesheet(filename) else @loadStylesheet(stylesheetPath) for stylesheetPath in fs.list(@path, ['.css', '.less'])