Skip to content

Commit

Permalink
Clear errors on file close
Browse files Browse the repository at this point in the history
  • Loading branch information
madskristensen committed Dec 28, 2021
1 parent d7976d7 commit 713a70e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 56 deletions.
56 changes: 0 additions & 56 deletions src/BaseClasses/TokenErrorListBase.cs

This file was deleted.

10 changes: 10 additions & 0 deletions src/BaseClasses/TokenErrorTaggerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,15 @@ private void PopulateErrorList(IEnumerable<IMappingTagSpan<TokenTag>> tags)
_dataSource.AddErrors(errors);
}
}

public override void Dispose(bool disposing)
{
if (disposing)
{
_dataSource.CleanAllErrors();
}

base.Dispose(disposing);
}
}
}

0 comments on commit 713a70e

Please sign in to comment.