mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Only migrate config when not including deprecated APIs
This commit is contained in:
@@ -879,6 +879,16 @@ describe "PackageManager", ->
|
||||
expect(fs.isSymbolicLinkSync(autocompletePlusPath)).toBe true
|
||||
|
||||
describe "when the deprecated sublime-tabs package is installed", ->
|
||||
grim = require 'grim'
|
||||
includeDeprecatedAPIs = null
|
||||
|
||||
beforeEach ->
|
||||
{includeDeprecatedAPIs} = grim
|
||||
grim.includeDeprecatedAPIs = false
|
||||
|
||||
afterEach ->
|
||||
grim.includeDeprecatedAPIs = includeDeprecatedAPIs
|
||||
|
||||
it "enables the tree-view and tabs package", ->
|
||||
atom.config.pushAtKeyPath('core.disabledPackages', 'tree-view')
|
||||
atom.config.pushAtKeyPath('core.disabledPackages', 'tabs')
|
||||
|
||||
@@ -451,6 +451,7 @@ class PackageManager
|
||||
|
||||
# TODO: remove this after a few versions
|
||||
migrateSublimeTabsSettings: (packagePaths) ->
|
||||
return if Grim.includeDeprecatedAPIs
|
||||
for packagePath in packagePaths when path.basename(packagePath) is 'sublime-tabs'
|
||||
atom.config.removeAtKeyPath('core.disabledPackages', 'tree-view')
|
||||
atom.config.removeAtKeyPath('core.disabledPackages', 'tabs')
|
||||
|
||||
Reference in New Issue
Block a user