Skip to content

Allow extensions to provide a global error handler for errors in extension code #45264

Description

@DanTup

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.

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS Codeapifeature-requestRequest for new features or functionalitylogVS Code log issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions