Skip to content

Add diagnostics when plugins throw runtime exceptions #1259

@TwitchBronBron

Description

@TwitchBronBron

Whenever a plugin throws a runtime exception, we should add a diagnostic somewhere. Since all diagnostics must be tied to a file, perhaps we tie it to the bsconfig.json?

Currently we only show these in the console as console.error calls.

How do we clear the diagnostics though? Would we need to store them with some type of context? (like the name of the plugin event that crashed, so next time it's okay? Or are they stuck until restart? (That might be fine?).

Should we add an option to disable this functionality, or should it just be on all the time? I vote on all the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions