22
33namespace LanguageServer . Parameters . TextDocument
44{
5- public class Diagnostic
6- {
7- public Range range { get ; set ; }
5+ /// <summary>
6+ /// For <c>textDocument/codeAction</c> and <c>textDocument/publishDiagnostics</c>
7+ /// </summary>
8+ /// <seealso>Spec 3.7.0</seealso>
9+ public class Diagnostic
10+ {
11+ /// <summary>
12+ /// The range at which the message applies.
13+ /// </summary>
14+ public Range range { get ; set ; }
815
9- public DiagnosticSeverity ? severity { get ; set ; }
16+ /// <summary>
17+ /// The diagnostic's severity. Can be omitted.
18+ /// </summary>
19+ /// <remarks>
20+ /// If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
21+ /// </remarks>
22+ public DiagnosticSeverity ? severity { get ; set ; }
1023
11- public NumberOrString code { get ; set ; }
24+ /// <summary>
25+ /// The diagnostic's code. Can be omitted.
26+ /// </summary>
27+ public NumberOrString code { get ; set ; }
1228
13- public string source { get ; set ; }
29+ /// <summary>
30+ /// A human-readable string describing the source of this diagnostic,
31+ /// e.g. <c>'typescript'</c> or <c>'super lint'</c>.
32+ /// </summary>
33+ public string source { get ; set ; }
1434
15- public string message { get ; set ; }
16- }
17- }
35+ /// <summary>
36+ /// The diagnostic's message.
37+ /// </summary>
38+ public string message { get ; set ; }
39+
40+ /// <summary>
41+ /// An array of related diagnostic information.
42+ /// </summary>
43+ /// <remarks>
44+ /// e.g. when symbol-names within a scope collide
45+ /// all definitions can be marked via this property.
46+ /// </remarks>
47+ /// <seealso>Spec 3.7.0</seealso>
48+ public DiagnosticRelatedInformation [ ] relatedInformation { get ; set ; }
49+ }
50+ }
0 commit comments