Exemple #1
0
        public void AddErrors(FileErrorCollection result)
        {
            if (result == null || !result.Errors.Any())
            {
                return;
            }

            result.Errors = result.Errors.Where(v => !snapshots.Any(s => s.Value.Errors.Contains(v))).ToList();

            var snapshot = new TableEntriesSnapshot(result);

            snapshots[result.FilePath] = snapshot;

            this.UpdateAllSinks();
        }
Exemple #2
0
        public void AddErrors(FileErrorCollection result)
        {
            if (result == null || result.Errors.All(e => e.ErrorType == TagErrorType.Hidden))
            {
                return;
            }

            result.Errors = result.Errors.Where(v => !Snapshots.Any(s => s.Value.Errors.Contains(v)) && v.ErrorType != TagErrorType.Hidden).ToList();

            var snapshot = new TableEntriesSnapshot(result);

            Snapshots[result.FilePath] = snapshot;

            this.UpdateAllSinks();
        }