Skip to content

Commit 2bdf101

Browse files
Added Error List icon support
1 parent 985071f commit 2bdf101

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/ErrorList/ErrorListItem.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using Microsoft.VisualStudio.Imaging.Interop;
23
using Microsoft.VisualStudio.Shell.Interop;
34

45
namespace Community.VisualStudio.Toolkit
@@ -63,6 +64,11 @@ public class ErrorListItem
6364
/// </summary>
6465
public string? BuildTool { get; set; }
6566

67+
/// <summary>
68+
/// The image icon moniker to use for the error list item.
69+
/// </summary>
70+
public ImageMoniker Icon { get; set; }
71+
6672
/// <inheritdoc/>
6773
public override bool Equals(object obj)
6874
{

src/toolkit/Community.VisualStudio.Toolkit.Shared/ErrorList/TableEntriesSnapshot.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ public override bool TryGetValue(int index, string columnName, out object? conte
8585
content = _errors[index].ErrorCodeToolTip;
8686
break;
8787

88+
case StandardTableKeyNames.PriorityImage:
89+
case StandardTableKeyNames.ErrorSeverityImage:
90+
content = _errors[index].Icon;
91+
break;
92+
8893
default:
8994
content = null;
9095
return false;

0 commit comments

Comments
 (0)