diff --git a/src/OmniSharp.Abstractions/Models/v1/Diagnostics/DiagnosticLocation.cs b/src/OmniSharp.Abstractions/Models/v1/Diagnostics/DiagnosticLocation.cs index 8ed274166b..b4061747ac 100644 --- a/src/OmniSharp.Abstractions/Models/v1/Diagnostics/DiagnosticLocation.cs +++ b/src/OmniSharp.Abstractions/Models/v1/Diagnostics/DiagnosticLocation.cs @@ -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) { diff --git a/src/OmniSharp.Roslyn.CSharp/Helpers/DiagnosticExtensions.cs b/src/OmniSharp.Roslyn.CSharp/Helpers/DiagnosticExtensions.cs index f78467d871..841bffb4ac 100644 --- a/src/OmniSharp.Roslyn.CSharp/Helpers/DiagnosticExtensions.cs +++ b/src/OmniSharp.Roslyn.CSharp/Helpers/DiagnosticExtensions.cs @@ -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 }; }