From 231295cb2c795a42f666d0e2aed08793e24b5abe Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 15 Oct 2014 18:55:38 -0600 Subject: [PATCH] Add dummy commands prior to package activation so they appear in palette Fixes #3846 --- src/package.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/package.coffee b/src/package.coffee index 1ec35b601..454760df4 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -338,7 +338,9 @@ class Package for selector, commands of @getActivationCommands() for command in commands do (selector, command) => - atom.commands.commandRegistered(command) + # Add dummy command so it appears in menu. + # The real command will be registered on package activation + @activationCommandSubscriptions.add atom.commands.add selector, command, -> @activationCommandSubscriptions.add(atom.commands.onWillDispatch (event) => return unless event.type is command currentTarget = event.target