mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Take 'scope' option in Config::onDidChange
Deprecate passing the scope as an optional first argument
This commit is contained in:
@@ -87,7 +87,7 @@ class TokenizedBuffer extends Model
|
||||
@configSettings = tabLength: atom.config.get('editor.tabLength', scope: @rootScopeDescriptor)
|
||||
|
||||
@grammarTabLengthSubscription?.dispose()
|
||||
@grammarTabLengthSubscription = atom.config.onDidChange @rootScopeDescriptor, 'editor.tabLength', ({newValue}) =>
|
||||
@grammarTabLengthSubscription = atom.config.onDidChange 'editor.tabLength', scope: @rootScopeDescriptor, ({newValue}) =>
|
||||
@configSettings.tabLength = newValue
|
||||
@retokenizeLines()
|
||||
@subscribe @grammarTabLengthSubscription
|
||||
|
||||
Reference in New Issue
Block a user