kenwheeler / mobile-preview

Atom Editor package that opens either a remote/local url or your current file in a mobile preview panel
MIT License
19 stars 6 forks source link

Package.getActivationCommands is deprecated. #10

Open githubtantan opened 9 years ago

githubtantan commented 9 years ago

Use activationCommands instead of activationEvents in your package.json Commands should be grouped by selector as follows:

  "activationCommands": {
    "atom-workspace": ["foo:bar", "foo:baz"],
    "atom-text-editor": ["foo:quux"]
  }
Package.getActivationCommands (C:\Users\Toshiba\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:808:9)
Package.hasActivationCommands (C:\Users\Toshiba\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:733:20)
<unknown> (C:\Users\Toshiba\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:185:24)
Package.measure (C:\Users\Toshiba\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\Toshiba\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:177:12)
PackageManager.loadPackage (C:\Users\Toshiba\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package-manager.js:355:14)