mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Deprecate configDefaults in packages.
This commit is contained in:
@@ -146,6 +146,9 @@ class Package
|
||||
if @mainModule.config? and typeof @mainModule.config is 'object'
|
||||
atom.config.setSchema @name, {type: 'object', properties: @mainModule.config}
|
||||
else if @mainModule.configDefaults? and typeof @mainModule.configDefaults is 'object'
|
||||
deprecate """Use a config schema instead. See the configuration section
|
||||
of https://atom.io/docs/latest/creating-a-package and
|
||||
https://atom.io/docs/api/latest/Config for more details"""
|
||||
atom.config.setDefaults(@name, @mainModule.configDefaults)
|
||||
@mainModule.activateConfig?()
|
||||
@configActivated = true
|
||||
|
||||
Reference in New Issue
Block a user