Commit Graph

210 Commits

Author SHA1 Message Date
Indrek Ardel
55f3311c01 Remove unused variables 2016-09-26 20:52:13 +03:00
Max Brunsfeld
db781dd54f Disallow duplicate keys when loading package keymaps
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-22 14:21:36 -07:00
Max Brunsfeld
4fa24a05da Fix invalid usage of activation disposable in Package::load
Like deserializers and config schema, directory providers are added
at package load time, and *not* removed when the package is deactivated
2016-09-15 16:34:39 -07:00
Max Brunsfeld
3aaa738944 Activate atom.directory-provider services before deserialization
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-14 13:26:03 -07:00
Max Brunsfeld
5d24bcf19e Merge pull request #12237 from zertosh/cleanup-activation-hook-subscrtiptions
Cleanup activationHookSubscriptions when deactivating package
2016-08-09 17:08:49 -07:00
Max Brunsfeld
9a72c7e65e Fix exception when package requires an incompatible native module 2016-08-02 12:14:00 -07:00
Andres Suarez
d7378f0d6a Cleanup activationHookSubscriptions when deactivating package
Released under CC0.
2016-07-25 22:45:43 -07:00
Yuya Tanaka
b66d1acb02 🐎 Skip require from settings view if configSchema 2016-07-25 07:51:11 +09:00
Lee Dohm
9f6f903592 Add enhanced wording @thomasjo recommended 2016-07-12 15:31:49 -07:00
Glavin Wiechert
4986a64815 Improve incompatible native module error message
Close #6771
2016-07-04 09:46:09 -03:00
Max Brunsfeld
e8693f45c9 Move lazy main module require out of loop 2016-02-10 17:40:55 -08:00
Max Brunsfeld
9c0aa629d7 Let packages define deserializers & view providers as main module methods 2016-02-10 14:28:57 -08:00
Max Brunsfeld
dc903fa124 Require package's main module in legacy activateConfig method 2016-01-25 12:42:12 -08:00
Max Brunsfeld
aecc2598f9 Restore private activateConfig method to fix settings-view 2015-11-24 15:14:39 -08:00
Max Brunsfeld
f35dddee2f Reregister config schema when package is reactivated
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 18:01:26 -08:00
Max Brunsfeld
327cf6997b Remember which packages use atom APIs at main module load time
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 17:35:38 -08:00
Max Brunsfeld
24938c0361 Defer loading view providers until activation or deserializer use
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 16:28:08 -08:00
Max Brunsfeld
d6e5ea8564 Defer requiring packages' main modules if they use new package.json fields 2015-11-23 16:05:32 -08:00
Max Brunsfeld
5f1947ef1f Guard for undefined package.json fields 2015-11-23 15:53:27 -08:00
Max Brunsfeld
2d29fd6e79 Load config schemas from packages' package.json files 2015-11-23 15:53:26 -08:00
Max Brunsfeld
cb2b068d77 Load view providers from files specified in package.json 2015-11-19 16:58:20 -08:00
Max Brunsfeld
a0a402c3f8 Remove 'atom' prefix from deserializers package.json key 2015-11-19 14:12:03 -08:00
Max Brunsfeld
46272cd192 Load deserializers lazily 2015-11-18 14:31:16 -08:00
Max Brunsfeld
ade1ef7a4c Load deserializers from files specified in package.json 2015-11-18 14:03:49 -08:00
Wliu
1bb944dadc Add specs 2015-11-04 16:22:01 -05:00
Wliu
5f8b2b643b Include package name metadata when creating errors 2015-11-04 16:00:57 -05:00
Max Brunsfeld
74c0836be5 🔥 Duplicate devMode/inDevMode parameter to Package, PackageManager 2015-10-09 17:34:22 -07:00
Max Brunsfeld
75463829f9 Pass inDevMode to package-manager as a boolean value
Rather than as a bound function
2015-10-09 17:26:19 -07:00
Antonio Scandurra
ff86eb6a59 Don't use atom.config global in ScopedProperties 2015-10-07 15:25:05 -05: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
Nathan Sobo
b649cb48ef Move static Package methods to PackageManager instance 2015-10-07 15:24:54 -05:00
Nathan Sobo
ee270db7ac Move document mutation to startEditorWindow 2015-10-07 15:24:53 -05:00
Thomas Johansen
38b8332c0b 🔥 Remove deprecations from Package 2015-09-22 10:37:05 -06:00
Nathan Sobo
ba3255ee56 Merge pull request #7896 from rameshvarun/extended-package
📝 Mark Package class as Extended, so that it appears in the docs.
2015-09-21 15:04:43 -06:00
Nathan Sobo
4a7cbff6d3 Remove Q from PackageManager, ThemeManager, Package, ThemePackage
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-09-18 21:24:59 -06:00
Nathan Sobo
6b66bf7b0a Fix use of _atomModuleCache in getNativeModuleDependencyPaths
Previously, we weren’t converting the relative path from the module
cache and the test wasn’t strong enough to detect this fact.
2015-09-17 17:21:52 -06:00
Chen Shen
20dcdf77a4 update 2015-09-17 09:52:00 -07:00
Chen Shen
7ea141b376 add 2015-09-17 09:09:57 -07:00
Nathan Sobo
7e0b0a4427 Cache incompatible packages based on electron version
This will cause us to re-check all packages when upgrading the version
of Electron.
2015-09-08 09:53:45 -06:00
Nathan Sobo
f5a591f6b3 Disable colored output from apm rebuild 2015-09-08 09:53:45 -06:00
Nathan Sobo
ea5b12d69c Clear build failures, cached incompatible modules after rebuild 2015-09-08 09:53:45 -06:00
Nathan Sobo
f571ee7baf Add Package::rebuild 2015-09-08 09:53:45 -06:00
Max Brunsfeld
b682658427 Rename 'disabledKeymaps' -> 'packagesWithKeymapsDisabled' 2015-07-31 10:37:56 -07:00
Max Brunsfeld
b02cb57344 Deactivate keymaps when deactivating packages
Refs #8130
2015-07-29 20:55:47 -07:00
Tom Munro
7753953944 Clean up keymap disabled config check and remove spurious newline 2015-07-29 20:13:26 -07:00
Tom Munro
b57d2e1dd0 Move disabledKeymaps observer into package manager 2015-07-29 11:59:32 -07:00
Tom Munro
b9c12857fb Add support for activating and deactivating package-specific keymaps 2015-07-28 22:27:10 -07:00
Varun Ramesh
b660b5ba02 📝 Mark Package class as Extended, so that it appears in the docs. 2015-07-14 15:53:24 -07:00