mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Add deprecations to the syntax scoped property methods
This commit is contained in:
@@ -40,16 +40,21 @@ class Syntax extends GrammarRegistry
|
||||
@propertyStore.propertySets
|
||||
|
||||
addProperties: (args...) ->
|
||||
deprecate 'Consider using atom.config.set() instead. A direct (but private) replacement is available at atom.config.addScopedDefaults().'
|
||||
atom.config.addScopedDefaults(args...)
|
||||
|
||||
removeProperties: (name) ->
|
||||
deprecate 'A direct (but private) replacement is available at atom.config.removeScopedSettingsForName().'
|
||||
atom.config.removeScopedSettingsForName(name)
|
||||
|
||||
clearProperties: ->
|
||||
deprecate 'A direct (but private) replacement is available at atom.config.clearScopedSettings().'
|
||||
atom.config.clearScopedSettings()
|
||||
|
||||
getProperty: (scope, keyPath) ->
|
||||
deprecate 'A direct (but private) replacement is available at atom.config.getRawScopedValue().'
|
||||
atom.config.getRawScopedValue(scope, keyPath)
|
||||
|
||||
propertiesForScope: (scope, keyPath) ->
|
||||
deprecate 'A direct (but private) replacement is available at atom.config.settingsForScopeDescriptor().'
|
||||
atom.config.settingsForScopeDescriptor(scope, keyPath)
|
||||
|
||||
Reference in New Issue
Block a user