Skip to content

Commit d6ff876

Browse files
committed
Improve class & method name in diagnostics
1 parent 1ffd5f0 commit d6ff876

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Flow.Launcher.Localization.SourceGenerators/SourceGeneratorDiagnostics.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class SourceGeneratorDiagnostics
1717
public static readonly DiagnosticDescriptor CouldNotFindPluginEntryClass = new DiagnosticDescriptor(
1818
"FLSG0002",
1919
"Could not find the main class of plugin",
20-
$"Could not find the main class of your plugin. It must implement {Constants.PluginInterfaceName}.",
20+
$"Could not find the main class of your plugin. It must implement `{Constants.PluginInterfaceName}`.",
2121
"Localization",
2222
DiagnosticSeverity.Warning,
2323
isEnabledByDefault: true
@@ -26,7 +26,7 @@ public static class SourceGeneratorDiagnostics
2626
public static readonly DiagnosticDescriptor CouldNotFindContextProperty = new DiagnosticDescriptor(
2727
"FLSG0003",
2828
"Could not find plugin context property",
29-
$"Could not find a property of type {Constants.PluginContextTypeName} in {{0}}. It must be a public static or internal static property of the main class of your plugin.",
29+
$"Could not find a property of type `{Constants.PluginContextTypeName}` in `{{0}}`. It must be a public static or internal static property of the main class of your plugin.",
3030
"Localization",
3131
DiagnosticSeverity.Warning,
3232
isEnabledByDefault: true
@@ -35,7 +35,7 @@ public static class SourceGeneratorDiagnostics
3535
public static readonly DiagnosticDescriptor ContextPropertyNotStatic = new DiagnosticDescriptor(
3636
"FLSG0004",
3737
"Plugin context property is not static",
38-
"Context property {0} is not static. It must be static.",
38+
"Context property `{0}` is not static. It must be static.",
3939
"Localization",
4040
DiagnosticSeverity.Warning,
4141
isEnabledByDefault: true
@@ -44,7 +44,7 @@ public static class SourceGeneratorDiagnostics
4444
public static readonly DiagnosticDescriptor ContextPropertyIsPrivate = new DiagnosticDescriptor(
4545
"FLSG0005",
4646
"Plugin context property is private",
47-
"Context property {0} is private. It must be either internal or public.",
47+
"Context property `{0}` is private. It must be either internal or public.",
4848
"Localization",
4949
DiagnosticSeverity.Warning,
5050
isEnabledByDefault: true
@@ -53,7 +53,7 @@ public static class SourceGeneratorDiagnostics
5353
public static readonly DiagnosticDescriptor ContextPropertyIsProtected = new DiagnosticDescriptor(
5454
"FLSG0006",
5555
"Plugin context property is protected",
56-
"Context property {0} is protected. It must be either internal or public.",
56+
"Context property `{0}` is protected. It must be either internal or public.",
5757
"Localization",
5858
DiagnosticSeverity.Warning,
5959
isEnabledByDefault: true
@@ -62,7 +62,7 @@ public static class SourceGeneratorDiagnostics
6262
public static readonly DiagnosticDescriptor LocalizationKeyUnused = new DiagnosticDescriptor(
6363
"FLSG0007",
6464
"Localization key is unused",
65-
$"Method '{Constants.ClassName}.{{0}}' is never used",
65+
$"Method `{Constants.ClassName}.{{0}}` is never used",
6666
"Localization",
6767
DiagnosticSeverity.Warning,
6868
isEnabledByDefault: true

0 commit comments

Comments
 (0)