mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Ignore preferences with no scope
This commit is contained in:
@@ -101,8 +101,10 @@ class TextMateBundle
|
||||
console.warn "Failed to parse preference at path '#{preferencePath}'", e
|
||||
else
|
||||
{ scope, settings } = data[0]
|
||||
return unless scope
|
||||
for scope in scope.split(',')
|
||||
scope = $.trim(scope)
|
||||
continue unless scope
|
||||
preferencesByScopeSelector[scope] = _.extend(preferencesByScopeSelector[scope] ? {}, settings)
|
||||
|
||||
preferencesByScopeSelector
|
||||
|
||||
Reference in New Issue
Block a user