lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

Promise.done is deprecated. #45

Open iplusplus42 opened 7 years ago

iplusplus42 commented 7 years ago

Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done

Promise.done (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1214:5)
Object.addPreviewForEditor (/Users/Andy/.atom/packages/rst-preview/lib/rst-preview.coffee:140:10)
Object.toggle (/Users/Andy/.atom/packages/rst-preview/lib/rst-preview.coffee:116:21)
atom-workspace.atom.commands.add.rst-preview:toggle (/Users/Andy/.atom/packages/rst-preview/lib/rst-preview.coffee:54:26)
CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59)
Fenrihr commented 5 years ago

up ++

leszekuchacz commented 5 years ago

up +++

raghavkaranth commented 5 years ago

up ++