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.
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
andport
so the helper will be automatically restarted next time it's needed.