jlebon / textern

A Firefox add-on for editing text in your favourite external editor!
GNU General Public License v3.0
138 stars 21 forks source link

Add debugging aids #64

Closed Screwtapello closed 4 years ago

Screwtapello commented 4 years ago

I've been toying with the idea of implementing Textern's native helper executable in Rust, so I can make a single self-contained executable that automatically generates a manifest and installs it in the correct place, etc. Every time my native helper crashes, I have to go into Firefox's Addon Manager, disable Textern and re-enable it, otherwise I get "This text is already being edited" errors and the native helper is not restarted.

With this change, when the native helper crashes, it logs the error to the extension console (instead of silently ignoring it) and clears activeDocs and port so the helper will be automatically restarted next time it's needed.