Katrina Uychaco
49fb287592
Don't load packages starting with dot. Fixes #9805
2016-04-12 20:35:30 -07:00
Michelle Tilley
383174d380
Load apm path from config
...
Signed-off-by: Katrina Uychaco <kuychaco@github.com >
2016-03-10 21:28:40 -08:00
Nathan Sobo
6292484c97
Always strip git+ prefix and .git suffix from package repository URLs
...
Previously, a guard based on the presence of the _id field (which is
inserted by npm during installation) prevented a regex replacement of
the git+ prefix on URLs. Now we always do this. Since the .git suffix
also causes problems and we’re removing that in packages, I now remove
that as well.
2016-02-29 17:30:03 -07:00
Max Brunsfeld
8d27d1925c
Avoid emitting config events while loading packages
2016-02-16 16:13:15 -08:00
Katrina Uychaco
81f30d4908
Only call package serialize methods once on quit
2016-02-01 16:49:21 -08:00
Katrina Uychaco
5e21f7bad9
Serialize package upon deactivation
2016-02-01 16:11:10 -08:00
Katrina Uychaco
a8692f1984
Extract serialize functionality from ::deactivatePackage. Tests WIP
2016-01-26 22:46:17 -07:00
Machiste Quintana
78543a7a34
Only disable a package if it isn't already disabled
2016-01-11 13:44:27 -05:00
Max Brunsfeld
314a1234f4
Track which packages are in the process of activating
...
This fixes a race condition where a package's activation promise resolves asynchronously
after it has been deactivated, causing it to stay in the package manager's @activePackages
object.
2015-12-08 11:09:52 -08:00
Max Brunsfeld
ec759f1322
Clear out loaded packages in PackageManager.prototype.reset
...
This way, when the AtomEnvironment is reset, packages will have .load() called
on them again, so their config schemas will be registered again.
2015-12-07 16:49:57 -08:00
Max Brunsfeld
cb2b068d77
Load view providers from files specified in package.json
2015-11-19 16:58:20 -08:00
Nathan Sobo
67c42282a6
Merge pull request #9527 from atom/lierdakil-defer-act-hooks
...
Lierdakil: Defer Activation Hooks
2015-11-12 16:06:41 -07:00
Nikolay Yakimov
571686e52b
Remove deprecated call
2015-11-11 07:51:04 -07:00
Nikolay Yakimov
fe47394b22
Update specs for deferred activation hooks
2015-11-11 07:51:04 -07:00
Nikolay Yakimov
7d959df683
Defer activation hooks ( #8313 )
2015-11-11 07:51:04 -07:00
Antonio Scandurra
38d713379f
🎨 Introduce Config::transactAsync
2015-11-11 09:55:20 +01:00
Antonio Scandurra
7e1a1bc8b0
Merge branch 'master' into as-faster-settings-load
...
# Conflicts:
# src/package-manager.coffee
2015-11-11 09:09:47 +01:00
Kevin Sawicki
95f56aa41e
Merge pull request #9514 from atom/ks-disabled-keymaps-for-uninstalled-packages
...
Guard against not loaded packages when updating disabled keymaps
2015-11-10 15:06:42 -08:00
Kevin Sawicki
4692ca9702
Guard against package not being loaded
2015-11-10 13:54:42 -08:00
Antonio Scandurra
d4a67a7db5
🎨 Call it ::beginTransaction
2015-11-10 11:42:39 +01:00
Antonio Scandurra
e437234c58
Transact on both async and sync package activation
2015-11-10 11:05:31 +01:00
aki
396e8a42a4
Fix activatePackages
2015-11-08 23:14:13 +09:00
Wliu
5f8b2b643b
Include package name metadata when creating errors
2015-11-04 16:00:57 -05:00
Antonio Scandurra
b25d3e944b
Parameterize configDirPath and move config.load in ctor
2015-10-14 12:41:36 +02:00
Max Brunsfeld
74c0836be5
🔥 Duplicate devMode/inDevMode parameter to Package, PackageManager
2015-10-09 17:34:22 -07:00
Antonio Scandurra
60e4b78da3
Move package reset down into PackageManager
2015-10-09 10:04:04 +02:00
Antonio Scandurra
4108939201
Don't use atom.{themes,menu,contextMenu} global in Package
2015-10-07 15:25:05 -05:00
Antonio Scandurra
7b25af5ad4
Remove more globals from Package
...
🔥 atom.{notifications,keymaps,commands,grammars,inDevMode}
2015-10-07 15:25:05 -05:00
Antonio Scandurra
c192004b06
Don't use atom.{config,styles} global in Package
2015-10-07 15:25:05 -05:00
Max Brunsfeld
ed735c115b
Fix typo in package manager
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-10-07 15:24:56 -05:00
Nathan Sobo
b649cb48ef
Move static Package methods to PackageManager instance
2015-10-07 15:24:54 -05:00
Nathan Sobo
a573e1f381
Watch for theme changes in ThemeManager instead of Atom environment
2015-10-07 15:24:53 -05:00
Nathan Sobo
c4bbd2bbf2
Build StyleManager in Atom environment constructor
2015-10-07 15:24:51 -05:00
Thomas Johansen
ca0b7fa0f4
🔥 Remove remaining deprecations from PackageManager
2015-09-22 10:37:06 -06:00
Thomas Johansen
b5c4f0c2ad
🔥 Remove uninstallAutocompletePlus and migrateSublimeTabsSettings
2015-09-22 10:37:06 -06:00
Nathan Sobo
e835bc0777
Use promises instead of Q in PackageManager
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-09-18 21:24:59 -06:00
Max Brunsfeld
b682658427
Rename 'disabledKeymaps' -> 'packagesWithKeymapsDisabled'
2015-07-31 10:37:56 -07:00
Tom Munro
b57d2e1dd0
Move disabledKeymaps observer into package manager
2015-07-29 11:59:32 -07:00
Ross Allen
80f2acb37d
Use Returns keyword to highlight vals in docs
...
Use the `Returns` keyword in `PackageManager::getAvailablePackage*`
docs so the return values are called out in panels like with other
documentation.
2015-07-28 14:39:11 -07:00
Joe Fitzgerald
f954aa2732
Rename @hooks >> @ activationHookEmitter
2015-07-09 02:38:06 -04:00
Joe Fitzgerald
b3b046aa66
Add activationHooks To package.json
...
- Trigger the `{grammar-package-name}:grammar-used` hook when grammar is set for tokenized-buffer
2015-07-09 02:33:17 -04:00
Ross Allen
178fffa74e
Add 'name' arg docs to PackageManager functions
2015-07-07 10:49:45 -07:00
Kevin Sawicki
71f9c26418
Only migrate config when not including deprecated APIs
2015-06-05 08:47:00 -07:00
Kevin Sawicki
022d0cead3
Re-enable tree-view and tabs sublime-tabs is installed
2015-06-05 08:43:11 -07:00
Kevin Sawicki
df2bd62327
Load deprecated packages when including deprecated APIs
2015-06-03 09:47:13 -07:00
Kevin Sawicki
551636d59e
📝 Tweak deprecated load message
2015-06-03 09:19:57 -07:00
Kevin Sawicki
87bbf15c6d
Log to console about not loading deprecated packages
2015-06-03 09:19:57 -07:00
Kevin Sawicki
4bb6728784
Add atom.packages.getDeprecatedPackageMetadata
2015-06-03 09:19:57 -07:00
Kevin Sawicki
d557e78847
Add spec for deprecated packages
2015-06-03 09:19:57 -07:00
Kevin Sawicki
22f2de77d1
Expose a atom.packages.isPackageDeprecated helper
2015-06-03 09:19:57 -07:00