コード例 #1
0
        public Task ClearAllAsync()
        {
            if (_languageServiceBuildErrorReporter != null)
            {
                _languageServiceBuildErrorReporter.ClearErrors();
            }

            return(Task.CompletedTask);
        }
コード例 #2
0
 /// <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();
         }
     }
 }