Can remove the clearing of scoped properties

Config is being created on each spec run!
This commit is contained in:
Ben Ogle
2014-10-02 14:43:14 -07:00
parent 3732bdf1e9
commit e5d67bb2ff
3 changed files with 1 additions and 9 deletions

View File

@@ -82,7 +82,6 @@ beforeEach ->
spyOn(atom, 'saveSync')
atom.syntax.clearGrammarOverrides()
atom.config.clearScopedSettings()
spy = spyOn(atom.packages, 'resolvePackagePath').andCallFake (packageName) ->
if specPackageName and packageName is specPackageName

View File

@@ -707,7 +707,7 @@ class Config
.join(' ')
@scopedSettingsStore.getPropertyValue(scopeChain, keyPath)
# TODO: figure out how to change / remove this. The return value is awkward.
# TODO: figure out how to change / remove this. The return value is awkward.
# * language mode uses it for one thing.
# * autocomplete uses it for editor.completions
settingsForScopeDescriptor: (scopeDescriptor, keyPath) ->
@@ -718,9 +718,6 @@ class Config
.join(' ')
@scopedSettingsStore.getProperties(scopeChain, keyPath)
clearScopedSettings: ->
@scopedSettingsStore = new ScopedPropertyStore
# Base schema enforcers. These will coerce raw input into the specified type,
# and will throw an error when the value cannot be coerced. Throwing the error
# will indicate that the value should not be set.

View File

@@ -47,10 +47,6 @@ class Syntax extends GrammarRegistry
deprecate 'atom.config.addScopedDefaults() now returns a disposable you can call .dispose() on'
atom.config.scopedSettingsStore.removeProperties(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)