Antonio Scandurra
d564bfc983
Test config.setSchema isn't called again when activating a preloaded package
2017-04-11 09:53:03 +02:00
Antonio Scandurra
48013a9140
Fix adding bundled packages to ModuleCache and increase test coverage
2017-04-11 09:37:11 +02:00
Max Brunsfeld
2ed0724fc4
Remove unnecessary calls to ViewRegistry.getView
2017-04-05 16:50:04 -07:00
Max Brunsfeld
6f0b1947ee
Use Workspace.getElement in tests
2017-04-05 15:32:00 -07:00
Antonio Scandurra
de47a26c5d
WIP: Start preloading packages
2017-03-28 10:22:29 +02:00
Nathan Sobo
4ef2924f55
Fix exceptions activating invalid packages in tests
2017-01-18 10:19:25 -07:00
Nathan Sobo
a433a84ab5
Fix describe block indentation
2017-01-18 10:19:25 -07:00
Max Brunsfeld
a57b627a58
Re-throw package activation exceptions in test mode
2017-01-18 10:19:25 -07:00
Antonio Scandurra
e943f7a19d
Add precondition test
2016-12-02 13:30:24 +01:00
Antonio Scandurra
756e6e4641
Activate packages immediately if hook had already been triggered
2016-12-02 12:56:51 +01:00
Damien Guard
3fd1dbdce3
Clean up temporary files when running specs
2016-12-01 10:48:45 -08:00
Damien Guard
bd2f6d641a
Fix id/source-path for themes on Win32
2016-11-29 16:55:14 -08:00
Matthew Dapena-Tretter
f1be4f057e
Add methods for checking if initial packages have been loaded/activated
...
This will allow packages to observe the state without having to worry
about subscribing to the events after they've already fired.
Originally suggested in #10839
2016-10-06 15:36:28 -07:00
Nathan Sobo
b7126aff4c
Don't serialize packages in deactivatePackages
...
Serialization still occurs when deactivating a single package via the
API. Otherwise, when the window is closed or reloaded we will serialize
all packages as a result of saving the window state.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-09-22 12:39:06 -06:00
Max Brunsfeld
3758fe5646
Use fake directory provider in integration test for remote dirs
...
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-15 16:33:04 -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
Andres Suarez
d7378f0d6a
Cleanup activationHookSubscriptions when deactivating package
...
Released under CC0.
2016-07-25 22:45:43 -07:00
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
Katrina Uychaco
bf264c6a6a
Merge branch 'master' into ku-crash-recovery
2016-02-15 21:40:59 -08:00
Max Brunsfeld
9c0aa629d7
Let packages define deserializers & view providers as main module methods
2016-02-10 14:28:57 -08:00
Katrina Uychaco
5e21f7bad9
Serialize package upon deactivation
2016-02-01 16:11:10 -08:00
Katrina Uychaco
8d55bbcdea
🎨 clean up test
2016-01-27 15:10:35 -07:00
Katrina Uychaco
39cb52c224
Fix tests for serialization
2016-01-27 11:13:29 -07:00
Katrina Uychaco
a8692f1984
Extract serialize functionality from ::deactivatePackage. Tests WIP
2016-01-26 22:46:17 -07:00
Machiste Quintana
088b32f9d5
Unfocus spec
2016-01-11 13:44:27 -05:00
Machiste Quintana
e7f15d06e4
✅ Add failing spec for disabling an already disabled package
2016-01-11 13:44:27 -05:00
Max Brunsfeld
d835ac0ac8
Add spec for re-registering schema after unloading package
2015-12-08 11:27:20 -08:00
Max Brunsfeld
03a2846eb5
Remove redundant unloadPackage call in spec
2015-12-07 17:24:34 -08:00
Antonio Scandurra
1c5c973823
Merge branch 'master' into as-user-keybindings-priority
...
# Conflicts:
# spec/package-manager-spec.coffee
2015-12-04 16:18:56 +01:00
Antonio Scandurra
5dfd765bcf
Do not override user-defined keymaps when reloading packages
2015-11-26 10:39:47 +01: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
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
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
Nikolay Yakimov
fe47394b22
Update specs for deferred activation hooks
2015-11-11 07:51:04 -07:00
Kevin Sawicki
a0c208974b
Add failing spec
2015-11-10 13:54:42 -08:00
Wliu
1bb944dadc
Add specs
2015-11-04 16:22:01 -05:00
Antonio Scandurra
b2d178f641
💚 Avoid resetting atom.grammars
...
...because it messes up subsequent tests that hit code paths that make use of
atom.grammars.
/cc: @nathansobo @maxbrunsfeld
2015-10-07 15:25:05 -05:00
Nathan Sobo
27762866c0
Build GrammarRegistry in Atom environment constructor
...
As part of this, we no longer serialize/deserialize the grammar registry
instance, but instead just restore the grammarOverridesByPath state.
Ultimately I’d like to store these overrides on the editor instead.
2015-10-07 15:24:52 -05:00
Nathan Sobo
8116889652
Remove unnecessary assignment of grim.removeDeprecatedApis from spec
2015-09-22 10:37:13 -06:00
Thomas Johansen
b5c4f0c2ad
🔥 Remove uninstallAutocompletePlus and migrateSublimeTabsSettings
2015-09-22 10:37:06 -06:00
Thomas Johansen
38b8332c0b
🔥 Remove deprecations from Package
2015-09-22 10:37:05 -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
0ab27610e5
Don’t use jQuery in package-manager-spec
2015-09-18 20:48:46 -06:00
Nathan Sobo
c7ecad5576
Remove EditorView
2015-09-18 20:48:45 -06:00