public Task ClearAllAsync() { if (_languageServiceBuildErrorReporter != null) { _languageServiceBuildErrorReporter.ClearErrors(); } return(Task.CompletedTask); }
/// <summary> /// This is the delegate for BuildStartedHandler events. /// </summary> private void BuildStartedHandler(object sender, BuildStartedEventArgs buildEvent) { try { this.haveCachedRegistry = false; if (LogAtImportance(MessageImportance.Normal)) { LogEvent(sender, buildEvent); } } catch (Exception e) { Debug.Assert(false, "Problem logging buildstarted event: " + e.Message + " at " + e.TargetSite); // swallow the exception } finally { if (errorReporter != null) { errorReporter.ClearErrors(); } } }