From 8ce2ffb3e833da8f6809c9c7e7b7113fec2e3046 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Wed, 10 Jul 2024 11:43:05 -0300 Subject: [PATCH] Drop usage of Humanizer in descriptors ctor In most cases, we won't even need to load humanizer at all, so avoid that early load. --- samples/dotnet/SponsorLink/DiagnosticsManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/dotnet/SponsorLink/DiagnosticsManager.cs b/samples/dotnet/SponsorLink/DiagnosticsManager.cs index 141289b6..764a1708 100644 --- a/samples/dotnet/SponsorLink/DiagnosticsManager.cs +++ b/samples/dotnet/SponsorLink/DiagnosticsManager.cs @@ -8,7 +8,6 @@ using System.IO; using System.Linq; using Humanizer; -using Humanizer.Localisation; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using static Devlooped.Sponsors.SponsorLink; @@ -195,7 +194,7 @@ SponsorStatus GetOrSetStatus(Func> getAdditionalF DiagnosticSeverity.Warning, isEnabledByDefault: true, description: string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Description, - sponsorable.Humanize(x => $"https://github.com/sponsors/{x}"), + string.Join(", ", sponsorable.Select(x => $"https://github.com/sponsors/{x}")), string.Join(" ", sponsorable)), helpLinkUri: "https://github.com/devlooped#sponsorlink", WellKnownDiagnosticTags.NotConfigurable);