setDiagnosticsEffect

Effect used to update the set of diagnostics.