I'm working on a Visual Studio extension that will "clean up" compilation error messages to make them easier to read.
I already know how to generate my own errors. Instead, what I am trying to do is modify/replace the text of the error messages that Visual Studio adds to the Error List pane as a result of parsing compilation output.
So far I have been unsuccessful in finding a way to do this. Here are my findings:
Is there some other way to accomplish this goal? Is there, within an extension, a way to:
The proper way of doing this would be to either modify the output of your compilation process, or modify the way your project system and/or .targets file reports the information from the compiler to the IDE. If you don't have control over either the compiler or the project system, then this would be a difficult to impossible task.
Displayed tasks implement IVsTaskItem
, and this interface is actually implemented by client code so there are no guarantees that a task item will provide the ability to modify any of its values.
The IVsTaskList2
interface adds a method RemoveTasks
, but it requires you have the provider cookie that was returned when the provider was registered (and there is no way to get this).