-
-
Notifications
You must be signed in to change notification settings - Fork 300
ErrorList module
Robert B Colton edited this page Aug 12, 2016
·
1 revision
Reproduces the error list tool window from Visual Studio. Can be used to show errors, warning, or information.
-
IErrorList
tool window
- None
var errorList = IoC.Get<IErrorList>();
errorList.Clear();
errorList.AddItem(
ErrorListItemType.Error,
"Description of the error",
@"C:\MyFile.txt",
1, // Line
20); // Column
You can optionally provide a callback that will be executed when the user double-clicks on an item:
errorList.AddItem(
ErrorListItemType.Error,
"Description of the error",
@"C:\MyFile.txt",
1, // Line
20, // Character
() =>
{
var openDocumentResult = new OpenDocumentResult(@"C:\MyFile.txt");
IoC.BuildUp(openDocumentResult);
openDocumentResult.Execute(null);
});