Skip to content

Commit

Permalink
Simple version of diagnostic tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
savpek committed Feb 18, 2019
1 parent 9cc6cb5 commit a29348c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class DiagnosticLocation : QuickFix
{
public string LogLevel { get; set; }
public string Id { get; set; }
public string[] Tags { get; set; }

public override bool Equals(object obj)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ internal static DiagnosticLocation ToDiagnosticLocation(this Diagnostic diagnost
EndColumn = span.EndLinePosition.Character,
Text = $"{diagnostic.GetMessage()} ({diagnostic.Id})",
LogLevel = diagnostic.Severity.ToString(),
Tags = diagnostic.Descriptor.CustomTags.ToArray(),
Id = diagnostic.Id
};
}
Expand Down

0 comments on commit a29348c

Please sign in to comment.