Currently it seems that in order to log all errors (or prompt the user to raise a an issue) we'd need to put try/catches in all of the possible entry points for an extensions code (eg. inside all providers methods, etc.).
I suspect Code is already doing something similar so it'd be nice if an extension could provide an onError (maybe optionally exported alongside active/deactivate) that can be invoked whenever an error occurs in any calls into that extensions code.
Currently it seems that in order to log all errors (or prompt the user to raise a an issue) we'd need to put try/catches in all of the possible entry points for an extensions code (eg. inside all providers methods, etc.).
I suspect Code is already doing something similar so it'd be nice if an extension could provide an onError (maybe optionally exported alongside active/deactivate) that can be invoked whenever an error occurs in any calls into that extensions code.