mirror of
https://github.com/atom/atom.git
synced 2026-01-28 00:08:13 -05:00
Use local config reference in TextEditorRegistry
This commit is contained in:
@@ -88,14 +88,14 @@ export default class TextEditorRegistry {
|
||||
|
||||
const configOptions = {scope: editor.getRootScopeDescriptor()}
|
||||
for (const [settingKey, setterName] of EDITOR_SETTER_NAMES_BY_SETTING_KEY) {
|
||||
editor[setterName](atom.config.get(settingKey, configOptions))
|
||||
editor[setterName](this.config.get(settingKey, configOptions))
|
||||
}
|
||||
|
||||
const updateTabTypes = () => {
|
||||
editor.setSoftTabs(shouldEditorUseSoftTabs(
|
||||
editor,
|
||||
atom.config.get('editor.tabType', configOptions),
|
||||
atom.config.get('editor.softTabs', configOptions)
|
||||
this.config.get('editor.tabType', configOptions),
|
||||
this.config.get('editor.softTabs', configOptions)
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user