mirror of
https://github.com/atom/atom.git
synced 2026-02-18 18:34:21 -05:00
List available themes in general config panel
This commit is contained in:
committed by
Corey Johnson & Kevin Sawicki
parent
495230435f
commit
d857cc7d77
@@ -106,8 +106,13 @@ module.exports =
|
||||
done(null, paths)
|
||||
|
||||
filterExtensions: (paths, extensions) ->
|
||||
extensions = extensions.map (ext) -> '.' + ext.replace(/^\./, '')
|
||||
paths.filter (path) => _.include(extensions, @extension(path))
|
||||
extensions = extensions.map (ext) ->
|
||||
if ext is ''
|
||||
ext
|
||||
else
|
||||
'.' + ext.replace(/^\./, '')
|
||||
paths.filter (path) =>
|
||||
_.include(extensions, @extension(path))
|
||||
|
||||
listTree: (rootPath) ->
|
||||
paths = []
|
||||
|
||||
Reference in New Issue
Block a user