Kevin Sawicki
853ad9cee3
Re-throw stylesheet compile errors
...
This makes it consistent with other read errors. Previously a Notification
was returned in the error case causing errors downstream where the package's
stylesheets array was assumed to be a path/content tuple.
Closes atom/deprecation-cop#22
2015-02-02 17:55:36 -08:00
Max Brunsfeld
14969c0522
Avoid using private serviceHub in package manager test
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-02 10:01:56 -08:00
Max Brunsfeld
65f2ffa55e
Rename service keys in package.json
...
* serviceProvisions -> providedServices
* serviceDependencies -> consumedServices
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-02 10:01:50 -08:00
Max Brunsfeld
5638c7fb6a
Remove atom.services global
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-02 10:01:34 -08:00
Max Brunsfeld
027ebc78c4
Respect service{Provisions,Dependencies} in packages' metadata
2015-02-02 10:00:53 -08:00
Nathan Sobo
0a5b4f9b33
Make “style sheet” two words in package.json metadata
...
Rename `stylesheets` -> `styleSheets`
Rename `stylesheetsMain` -> `mainStyleSheet`
2015-01-09 09:04:04 -08:00
Nathan Sobo
932d3755ce
Rename stylesheets/ directory in fixture packages
2015-01-09 08:56:12 -08:00
Nathan Sobo
4ab33890fc
Add PackageManager::onDidLoad/UnloadPackage
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:51:11 -08:00
Nathan Sobo
7acf3d4d6b
Add PackageManager::onDidDeactivatePackage
2015-01-08 17:51:11 -08:00
Nathan Sobo
6dd9834ae1
Remove defunct text-mate package specs
2015-01-08 17:51:11 -08:00
Nathan Sobo
a6c9244c77
Add PackageManager::onDidActivatePackage
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:51:11 -08:00
Nathan Sobo
dbc88bde18
Remove special case in spec for packages converted from text-mate
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:51:11 -08:00
Nathan Sobo
18ac0091a8
Don’t call onDidActivateInitialPackages listeners until the right time
...
We wait until all packages without activation commands actually
activate.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:51:11 -08:00
Nathan Sobo
30513cfde0
Rename ThemeManager methods for clarity/consistency
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-01-08 17:51:09 -08:00
Kevin Sawicki
6fe7eb086f
Gracefully handle empty keymaps and menus
...
Closes atom/settings-view#310
2015-01-07 09:18:57 -08:00
Nathan Sobo
b4246a2f07
Load package settings from settings and deprecate scoped-properties
2014-12-29 15:46:10 -06:00
Max Brunsfeld
c328092463
💄 package-manager-spec
2014-12-23 17:14:25 -08:00
Max Brunsfeld
b1a3d89af3
Fix grammar in spec description
2014-12-23 17:05:21 -08:00
Max Brunsfeld
d90daf07f8
In PackageManager::activatePackage reject, don't throw
2014-12-23 16:47:43 -08:00
Max Brunsfeld
a1b4820c04
Revert "Revert "Merge pull request #4631 ""
...
This reverts commit dc2a453986 .
Conflicts:
spec/config-spec.coffee
src/config.coffee
2014-12-23 09:26:40 -08:00
Max Brunsfeld
dc2a453986
Revert "Merge pull request #4631 from atom/mb-new-config-api"
...
This reverts commit 5147fb6a8b , reversing
changes made to 9bbbb58084 .
2014-12-16 15:27:39 -08:00
Max Brunsfeld
ac6fbf100d
Fix deprecation in package-manager-spec
2014-12-16 14:00:57 -08:00
Nathan Sobo
c58606907a
Make scope a trailing option to Config::get
2014-12-16 14:00:56 -08:00
Max Brunsfeld
aecd689593
Call Workspace::getActiveTextEditor, not ::getActiveEditor
2014-12-04 08:57:33 -08:00
Ben Ogle
4048fb978c
Suppress deprecations for package activation
2014-11-26 14:55:39 -08:00
Ben Ogle
64222d3096
Suppress deprecations in configDefault test
2014-11-26 14:55:39 -08:00
Ben Ogle
3fd5ba9b3c
Remove unnecessary workspaceView requires
2014-11-26 14:55:39 -08:00
Ben Ogle
43ccf0a041
Convert require ‘atom’ to require '../src/space-pen-extensions'
2014-11-26 14:55:38 -08:00
Nathan Sobo
97a56574e0
Merge pull request #4259 from atom/ns-deprecate-syntax-global
...
Rename atom.syntax to atom.grammars
2014-11-20 14:11:45 -07:00
Nathan Sobo
d53d01d95b
Replace atom.syntax with atom.grammars
2014-11-20 11:42:49 -07:00
Nathan Sobo
131522f93d
Rename Syntax to GrammarRegistry
2014-11-20 11:38:01 -07:00
Ben Ogle
fb223db958
Remove workspaceView from PackageManager specs
2014-11-19 17:46:32 -08:00
Nathan Sobo
481e444ffe
Reassign context to undefined because CoffeeScript needs a var keyword
...
Fixes #4100
2014-11-07 18:00:38 -07:00
Nathan Sobo
dd4e7d6921
Wait for promise resolution on all calls to activatePackage
...
This avoids a race condition where stylesheets would be added after all
packages were deactivated and leak into the next spec.
2014-11-04 16:37:26 -07:00
Nathan Sobo
d060ecdc24
Assign package stylesheet context based on double-extension in file name
...
If stylesheet files are named with 2 extensions, the first extension is
used as the context argument when the package’s stylesheets are loaded.
This allows people to target the text editor by naming their stylesheet
`index.atom-text-editor.less`.
2014-11-04 16:37:26 -07:00
Ben Ogle
ee4116536d
Move the ViewRegistry to atom.views
2014-10-30 13:42:27 -07:00
Nathan Sobo
1eb3d8bf99
Use ‘atom-text-editor’ custom tag name for TextEditorElement
2014-10-09 07:39:14 -07:00
Ben Ogle
a8fad6a0fb
Use disposables for removing properties
2014-10-03 10:46:13 -07:00
Ben Ogle
e2ac19c17f
Use config rather than syntax for scoped properties
2014-10-03 10:46:13 -07:00
Nathan Sobo
f004f8c45d
Merge branch 'master' into ns-workspace-custom-elements
...
Conflicts:
spec/pane-view-spec.coffee
spec/workspace-view-spec.coffee
src/workspace-view.coffee
src/workspace.coffee
2014-10-01 11:49:23 -06:00
Nathan Sobo
36d5359ef4
Restore original context menu ordering
...
Previously I used CSS specificity to order the most specific / recently
added menu items for a given element *first* when building up the
context menu. When a duplicate label was found for a given menu I would
refrain from inserting it. Now instead I order things the opposite way.
The most specific / recently added items come later and items with the
same label are clobbered by later items.
2014-09-30 12:06:26 -06:00
Nathan Sobo
f082f93ead
Update specs for new ContextMenuManager API/behavior
...
When selectors have the same specificity, menu items added *later*
appear higher in the list.
2014-09-30 12:06:26 -06:00
Ben Ogle
fc3ba775c8
Support schemas in packages
2014-09-29 16:08:03 -07:00
Nathan Sobo
0ebedeec3a
Merge remote-tracking branch 'origin/master' into ns-workspace-custom-elements
...
Conflicts:
package.json
src/workspace.coffee
2014-09-26 14:49:28 -06:00
Ben Ogle
3601d113ad
Deactivate and unload all packages
2014-09-26 11:21:42 -07:00
Nathan Sobo
670f3e4946
Add WorkspaceElement
2014-09-25 11:41:09 -06:00
Nathan Sobo
47f8f7eb11
Switch specs to use activationCommands instead of activationEvents
...
The activationEvents are converted to the same format as
activationCommands, and that property will be deprecated.
2014-09-24 14:34:29 -06:00
Nathan Sobo
63181a17c8
Support activationCommands field in package.json
...
This field mandates selectors in its structure and closely matches the
API of `atom.commands.add`. It will supplant `activationEvents` moving
forward.
2014-09-24 14:34:28 -06:00
Nathan Sobo
7d31b17273
Use the CommandRegistry to register activation event listeners
...
Commands registered with the command registry will always be handled
first, so as long as we disable any listeners in the registry that were
already invoked for the current command, we don’t need to disable jQuery
methods before replaying the command after activating the package.
This commit adds the ability to call .disableInvokedListeners on the
event passed to the command listeners. This returns a function which
can be called to reenable them.
2014-09-24 14:34:28 -06:00
Nathan Sobo
a492596f7f
Allow atom.commands to participate in activationEvents
...
* Activation events can be handled via atom.commands
* Pre-existing listeners registered via atom.commands are disabled when
replaying events for the activated package.
2014-09-24 14:34:28 -06:00