Commit Graph

249 Commits

Author SHA1 Message Date
Michelle Tilley
5bbf0b6ade 🎨 package activation 2017-10-17 15:37:49 -07:00
Michelle Tilley
8b989ffc4e More url -> URI 2017-10-17 15:29:27 -07:00
Michelle Tilley
5e43084cd3 url -> URI 2017-10-17 15:23:10 -07:00
Michelle Tilley
7aa79bc3a1 Unregister package URL handlers when deactivating 2017-10-17 12:59:21 -07:00
Michelle Tilley
eb4357ce87 Add tests for packages with URI handlers 2017-10-03 13:20:48 -07:00
Michelle Tilley
4b67353f85 Merge remote-tracking branch 'origin/master' into mkt-url-based-command-dispatch 2017-10-03 13:16:02 -07:00
Ash Wilson
88a32589ab Restore a missing "typeof" 2017-09-25 09:56:40 -04:00
Michelle Tilley
b4f73f254d Hook up package URL handlers 2017-09-18 18:55:02 -07:00
Damien Guard
524d483610 Ensure non-async deactivate is run syncronously without await 2017-09-08 19:00:27 -07:00
Damien Guard
69e631d509 Allow Promises to be returned by a package deactivate method 2017-09-08 19:00:25 -07:00
Wliu
dfa3ab1c6e process.versions.atom-shell -> process.versions.electron 2017-05-03 14:21:23 +02:00
Antonio Scandurra
48013a9140 Fix adding bundled packages to ModuleCache and increase test coverage 2017-04-11 09:37:11 +02:00
Michelle Tilley
155c3a14bf Perform per-package transpilation on bundled packages during build 2017-04-04 07:54:14 -07:00
Antonio Scandurra
6ecb9086ee Assign Package.prototype.mainModulePath eagerly for preloaded packages
Many packages currently use this instance variable instead of calling
`Package.prototype.getMainModulePath`. With this commit we will eagerly
compute it for preloaded packages too and therefore prevent third party
packages that rely on this implementation detail from breaking.
2017-04-03 14:11:23 +02:00
Antonio Scandurra
6a8d0915db Fix deactivating and reactivating preloaded package 2017-04-03 10:34:32 +02:00
Antonio Scandurra
5e6938c1a8 Use core: instead of core/ when adding resources during snapshot 2017-03-28 13:35:35 +02:00
Antonio Scandurra
a25b58a559 Use @preloaded instead of checking if pack is bundled and dev mode is on 2017-03-28 11:52:25 +02:00
Antonio Scandurra
ab9326687d Streamline path resolution for preloaded packages 2017-03-28 11:47:45 +02:00
Antonio Scandurra
557fac226d Read devMode from PackageManager in Package 2017-03-28 10:22:29 +02:00
Antonio Scandurra
19010b9424 Activate menus, context menus, keymaps and settings during preload 2017-03-28 10:22:29 +02:00
Antonio Scandurra
974e1b7f4a Preload settings 2017-03-28 10:22:29 +02:00
Antonio Scandurra
ab1411b1d7 Preload bundled grammar paths 2017-03-28 10:22:29 +02:00
Antonio Scandurra
de47a26c5d WIP: Start preloading packages 2017-03-28 10:22:29 +02:00
Antonio Scandurra
e9c13a92ed Extract a loadAvailablePackage method and avoid doing work twice
This will reuse the information that comes from `getAvailablePackages`,
thus avoiding to resolve, for example, a package path twice.
`PackageManager.loadPackage` will still be supported for backward
compatibility, but it will use `loadAvailablePackage` under the hood.
2017-03-28 10:22:29 +02:00
Antonio Scandurra
2ce66a724c Ensure packagesCache exists before accessing it 2017-03-20 17:23:06 +01:00
Antonio Scandurra
e2637aac78 🎨 2017-03-20 10:20:36 +01:00
Antonio Scandurra
a1da6c9196 Resolve style sheets paths during script/build for bundled packages 2017-03-14 14:27:10 +01:00
Antonio Scandurra
19d07172a7 Don't transform deprecated selectors for bundled packages 2017-03-09 16:15:54 +01:00
Antonio Scandurra
dcd9c48f63 Use CompileCache supportedExtensions instead of require.extensions 2017-02-28 19:01:21 +01:00
Antonio Scandurra
e453b04105 Put back code that was commented out 2017-02-27 16:45:57 +01:00
Antonio Scandurra
681f0f9fe1 Make Atom work also without a snapshot 2017-02-27 14:47:20 +01:00
Antonio Scandurra
ea879340c0 WIP 2017-02-24 16:36:16 +01:00
Max Brunsfeld
a57b627a58 Re-throw package activation exceptions in test mode 2017-01-18 10:19:25 -07:00
Antonio Scandurra
756e6e4641 Activate packages immediately if hook had already been triggered 2016-12-02 12:56:51 +01:00
Matthew Dapena-Tretter
25518b9c8e Add initialize() hook to packages 2016-11-30 14:27:29 -08:00
Michelle Tilley
94f603e50a Pass package info to transpilers 2016-11-01 10:54:26 -07:00
Michelle Tilley
2d3afb431c Include package name as part of cache key 2016-10-31 23:21:13 -07:00
Michelle Tilley
b111941022 Implement glob checking and multiple transpilers 2016-10-29 15:18:34 -07:00
Michelle Tilley
ad448184b4 First pass at per-package transpilation 2016-10-29 14:30:24 -07:00
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