Пример #1
0
 public void ClearDiagnostics(EncErrorId errorId, Solution solution, ProjectId projectId, DocumentId documentIdOpt)
 {
     DiagnosticsUpdated?.Invoke(this, DiagnosticsUpdatedArgs.DiagnosticsRemoved(
                                    errorId,
                                    solution.Workspace,
                                    solution: solution,
                                    projectId: projectId,
                                    documentId: documentIdOpt));
 }
Пример #2
0
        public void ClearDiagnostics(EncErrorId errorId, Solution solution, ProjectId projectId, ImmutableArray <DocumentId> documentIds)
        {
            // clear project diagnostics:
            ClearDiagnostics(errorId, solution, projectId, null);

            // clear document diagnostics:
            foreach (var documentIdOpt in documentIds)
            {
                ClearDiagnostics(errorId, solution, projectId, documentIdOpt);
            }
        }