JunoLab / atom-ink

IDE toolkit for Atom
MIT License
228 stars 40 forks source link

How to attach an event when Console is closed? #198

Open mauricioszabo opened 5 years ago

mauricioszabo commented 5 years ago

Right now I'm using console.currentPane().onDidDestroy(...), but it's also emitting the signal to close the console when I drag it.

Is there a way to detect that the console was closed?

pfitzseb commented 5 years ago

I don't think so, no. Should be possible to provide a onDidDestroy listener though -- will look into it. Out of curiosity -- why do you need that?

mauricioszabo commented 5 years ago

I'm developing an Atom plug-in (Chlorine, another idea on connecting Clojure to Atom) that connects console to a REPL. When I close the console I want to disconnect the REPL.