How to preserve 'tentative' diagnostics recorded during a `DiagnosticTransaction`?

i've been looking into this issue recently which i believe is due to error diagnostics being produced but effectively ignored when they should not be. as such, i've been searching for prior art that will allow the 'tentative diagnostics' recorded within a DiagnosticTransaction to be preserved such that they can be (potentially) emitted at a later point. does anyone happen to know if this is currently done anywhere or is possible to achieve with the existing diagnostics API? if not, any suggestions on implementation approaches would be appreciated. thanks in advance!

1 Like