modelica-tools / atom-language-modelica

Modelica language support for the atom editor
https://atom.io/packages/language-modelica
Other
8 stars 4 forks source link

Promise.done is deprecated. #37

Open Helarga opened 4 years ago

Helarga commented 4 years ago

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

Promise.done (<embedded>:1:727410)
Object.toggledocview (/home/helarga/.atom/packages/language-modelica/lib/modelica.coffee:144:10)
HTMLElement.subscriptions.add.atom.commands.add.language-modelica:toggledocview (/home/helarga/.atom/packages/language-modelica/lib/modelica.coffee:31:26)
CommandRegistry.handleCommandEvent (<embedded>:11:349290)
CommandRegistry.dispatch (<embedded>:11:347765)
AtomEnvironment.dispatchApplicationMenuCommand (<embedded>:1:725070)
thorade commented 4 years ago

Thanks for the report. This sounds like you know how to fix it, would you like to also send a Pull Request?