mirror of
https://github.com/atom/atom.git
synced 2026-01-21 04:48:12 -05:00
Remove special method for language mode
This commit is contained in:
@@ -708,15 +708,6 @@ class Config
|
||||
.join(' ')
|
||||
@scopedSettingsStore.getPropertyValue(scopeChain, keyPath)
|
||||
|
||||
# TODO: figure out how to remove this. Only language mode uses it for one thing.
|
||||
scopedSettingsForScopeDescriptor: (scopeDescriptor, keyPath) ->
|
||||
scopeChain = scopeDescriptor
|
||||
.map (scope) ->
|
||||
scope = ".#{scope}" unless scope[0] is '.'
|
||||
scope
|
||||
.join(' ')
|
||||
@scopedSettingsStore.getProperties(scopeChain, keyPath)
|
||||
|
||||
clearScopedSettings: ->
|
||||
@scopedSettingsStore = new ScopedPropertyStore
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@ class LanguageMode
|
||||
# Returns an {Array} of the commented {Ranges}.
|
||||
toggleLineCommentsForBufferRows: (start, end) ->
|
||||
scopes = @editor.scopesForBufferPosition([start, 0])
|
||||
properties = atom.syntax.propertiesForScope(scopes, "editor.commentStart")[0]
|
||||
return unless properties
|
||||
properties = atom.config.get(scopes, "editor")
|
||||
return unless properties.commentStart
|
||||
|
||||
commentStartString = _.valueForKeyPath(properties, "editor.commentStart")
|
||||
commentEndString = _.valueForKeyPath(properties, "editor.commentEnd")
|
||||
commentStartString = properties.commentStart
|
||||
commentEndString = properties.commentEnd
|
||||
|
||||
return unless commentStartString
|
||||
|
||||
|
||||
Reference in New Issue
Block a user