Skip to content

Commit 965ede1

Browse files
committed
Slight adjust
1 parent 1673504 commit 965ede1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Flow.Launcher.Localization.SourceGenerators/Localize/PublicApiSourceGenerator.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ private void GenerateSource(
8888
sourceBuilder.AppendLine($"{tabString}/// <summary>");
8989
sourceBuilder.AppendLine($"{tabString}/// Get <see cref=\"Flow.Launcher.Plugin.IPublicAPI\"> instance");
9090
sourceBuilder.AppendLine($"{tabString}/// </summary>");
91-
sourceBuilder.AppendLine($"{tabString}internal static Flow.Launcher.Plugin.IPublicAPI {Constants.PublicApiInternalPropertyName} => {Constants.PublicApiPrivatePropertyName} ??= CommunityToolkit.Mvvm.DependencyInjection.Ioc.Default.GetRequiredService<Flow.Launcher.Plugin.IPublicAPI>();");
92-
sourceBuilder.AppendLine();
93-
91+
sourceBuilder.AppendLine($"{tabString}internal static Flow.Launcher.Plugin.IPublicAPI {Constants.PublicApiInternalPropertyName} =>" +
92+
$"{Constants.PublicApiPrivatePropertyName} ??= CommunityToolkit.Mvvm.DependencyInjection.Ioc.Default.GetRequiredService<Flow.Launcher.Plugin.IPublicAPI>();");
9493
sourceBuilder.AppendLine($"}}");
9594

9695
// Add source to context

0 commit comments

Comments
 (0)