mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Ugh, add settingsForScopeDescriptor back
It’s used by language mode and autocomplete for different things
This commit is contained in:
@@ -30,11 +30,11 @@ class LanguageMode
|
||||
# Returns an {Array} of the commented {Ranges}.
|
||||
toggleLineCommentsForBufferRows: (start, end) ->
|
||||
scopes = @editor.scopesForBufferPosition([start, 0])
|
||||
properties = atom.config.get(scopes, "editor")
|
||||
return unless properties.commentStart
|
||||
properties = atom.config.settingsForScopeDescriptor(scopes, "editor.commentStart")[0]
|
||||
return unless properties
|
||||
|
||||
commentStartString = properties.commentStart
|
||||
commentEndString = properties.commentEnd
|
||||
commentStartString = _.valueForKeyPath(properties, 'editor.commentStart')
|
||||
commentEndString = _.valueForKeyPath(properties, 'editor.commentEnd')
|
||||
|
||||
return unless commentStartString
|
||||
|
||||
|
||||
Reference in New Issue
Block a user