From 00b79e69f195e0973ac0dacca1c11023b9800d37 Mon Sep 17 00:00:00 2001 From: Lee Dohm Date: Sun, 1 Feb 2015 08:29:21 -0800 Subject: [PATCH] :memo: activationEvents are now activationCommands --- docs/creating-a-package.md | 2 +- docs/your-first-package.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/creating-a-package.md b/docs/creating-a-package.md index fed5cfb2a..cfedd62b2 100644 --- a/docs/creating-a-package.md +++ b/docs/creating-a-package.md @@ -51,7 +51,7 @@ in the _menus_ directory are added alphabetically. - `snippets` (**Optional**): an Array of Strings identifying the order of the snippets your package needs to load. If not specified, snippets in the _snippets_ directory are added alphabetically. -- `activationEvents` (**Optional**): an Array of Strings identifying events that +- `activationCommands` (**Optional**): an Array of Strings identifying commands that trigger your package's activation. You can delay the loading of your package until one of these events is triggered. - `providedServices` (**Optional**): an Object describing the services that your diff --git a/docs/your-first-package.md b/docs/your-first-package.md index 578ca9f50..eb882abc7 100644 --- a/docs/your-first-package.md +++ b/docs/your-first-package.md @@ -72,12 +72,12 @@ command palette or by pressing `ctrl-alt-cmd-l`. Now open the command panel and search for the `ascii-art:convert` command. But it's not there! To fix this, open _package.json_ and find the property called -`activationEvents`. Activation Events speed up load time by allowing Atom to +`activationCommands`. Activation Events speed up load time by allowing Atom to delay a package's activation until it's needed. So remove the existing command -and add `ascii-art:convert` to the `activationEvents` array: +and add `ascii-art:convert` to the `activationCommands` array: ```json -"activationEvents": ["ascii-art:convert"], +"activationCommands": ["ascii-art:convert"], ``` First, reload the window by running the command `window:reload`. Now when you