@@ -6,17 +6,36 @@ internal static class GeneratorDiagnostics
6
6
{
7
7
public static DiagnosticDescriptor MissingDirection { get ; } = new DiagnosticDescriptor (
8
8
"LSP1000" , "Missing Direction" ,
9
- "No direction defined for Language Server Protocol Handler" , "JsonRPC" , DiagnosticSeverity . Warning , true
9
+ "No direction defined for Language Server Protocol Handler" , "LSP" , DiagnosticSeverity . Warning , true
10
+ ) ;
11
+ public static DiagnosticDescriptor Exception { get ; } = new DiagnosticDescriptor (
12
+ "JRPC0001" , "Exception" ,
13
+ "{0}" , "JRPC" , DiagnosticSeverity . Error , true
10
14
) ;
11
15
12
16
public static DiagnosticDescriptor NoHandlerRegistryProvided { get ; } = new DiagnosticDescriptor (
13
17
"JRPC1000" , "No Handler Registry Provided" ,
14
- "No Handler Registry Provided for handler {0}." , "JsonRPC" , DiagnosticSeverity . Warning , true
18
+ "No Handler Registry Provided for handler {0}." , "JsonRPC" , DiagnosticSeverity . Info , true
15
19
) ;
16
20
17
21
public static DiagnosticDescriptor NoResponseRouterProvided { get ; } = new DiagnosticDescriptor (
18
22
"JRPC1001" , "No Response Router Provided" ,
19
- "No Response Router Provided for handler {0}, defaulting to {1}." , "JsonRPC" , DiagnosticSeverity . Warning , true
23
+ "No Response Router Provided for handler {0}, defaulting to {1}." , "JsonRPC" , DiagnosticSeverity . Info , true
24
+ ) ;
25
+
26
+ public static DiagnosticDescriptor ClassMustBePartial { get ; } = new DiagnosticDescriptor (
27
+ "JRPC1002" , "Class must be made partial" ,
28
+ "Class {0} must be made partial." , "JsonRPC" , DiagnosticSeverity . Warning , true
29
+ ) ;
30
+
31
+ public static DiagnosticDescriptor MustInheritFromCanBeResolved { get ; } = new DiagnosticDescriptor (
32
+ "LSP1001" , "The target class must implement ICanBeResolved" ,
33
+ "The target class must implement ICanBeResolved" , "LSP" , DiagnosticSeverity . Error , true
34
+ ) ;
35
+
36
+ public static DiagnosticDescriptor MustInheritFromCanHaveData { get ; } = new DiagnosticDescriptor (
37
+ "LSP1002" , "The target class must implement ICanHaveData" ,
38
+ "The target class must implement ICanHaveData" , "LSP" , DiagnosticSeverity . Error , true
20
39
) ;
21
40
}
22
41
}
0 commit comments