I am writing my custom parser and after validation i am adding information to Error list of Visual studio using "error task" and "error service Provider". It's adding my custom error to error list window. but when i recompile again it adds up the error to the window. if it was 2 before and now is 3 the it shows ac-cumulatively. Is there any way that i can clear those error items from error list window before i add another.
_errorListProvider.Tasks.Add(new ErrorTask
{
Category = TaskCategory.User,
ErrorCategory = category,
HelpKeyword = "Automation Id Help text",
Line = 12,
Column = 12,
Text = message
});
i would appreciate any help on this.