From 0c25184624b3bccdf35635e8d1d162ca60e55930 Mon Sep 17 00:00:00 2001 From: Ivan Zuzak Date: Fri, 24 Apr 2015 16:54:41 +0200 Subject: [PATCH 1/2] Add package name to Grim.deprecate call for activationEvents --- src/package.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.coffee b/src/package.coffee index 8003d2d8d..4c1b296a1 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -465,7 +465,7 @@ class Package @activationCommands[selector].push(commands...) if includeDeprecatedAPIs and @metadata.activationEvents? - deprecate """ + deprecate(""" Use `activationCommands` instead of `activationEvents` in your package.json Commands should be grouped by selector as follows: ```json @@ -474,7 +474,7 @@ class Package "atom-text-editor": ["foo:quux"] } ``` - """ + """, {packageName: @name}) if _.isArray(@metadata.activationEvents) for eventName in @metadata.activationEvents @activationCommands['atom-workspace'] ?= [] From d75d2704264d9d383bab254bc79b8b62bda36f5f Mon Sep 17 00:00:00 2001 From: Ivan Zuzak Date: Fri, 24 Apr 2015 17:02:48 +0200 Subject: [PATCH 2/2] Add package name to Grim.deprecate call for configDefaults --- src/package.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.coffee b/src/package.coffee index 4c1b296a1..a395dfb14 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -161,9 +161,9 @@ class Package if @mainModule.config? and typeof @mainModule.config is 'object' atom.config.setSchema @name, {type: 'object', properties: @mainModule.config} else if includeDeprecatedAPIs and @mainModule.configDefaults? and typeof @mainModule.configDefaults is 'object' - deprecate """Use a config schema instead. See the configuration section + deprecate("""Use a config schema instead. See the configuration section of https://atom.io/docs/latest/hacking-atom-package-word-count and - https://atom.io/docs/api/latest/Config for more details""" + https://atom.io/docs/api/latest/Config for more details""", {packageName: @name}) atom.config.setDefaults(@name, @mainModule.configDefaults) @mainModule.activateConfig?() @configActivated = true