Skip to content
Robert B Colton edited this page Aug 12, 2016 · 1 revision

Screenshot

Reproduces the error list tool window from Visual Studio. Can be used to show errors, warning, or information.

Provides

  • IErrorList tool window

NuGet package

Dependencies

  • None

Usage

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);
    });
Clone this wiki locally