mirror of
https://github.com/atom/atom.git
synced 2026-01-20 20:38:09 -05:00
Can remove the clearing of scoped properties
Config is being created on each spec run!
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user