Class SessionDiagnostic
One finding, flattened for a client that renders lines of text rather than editor decorations.
public record SessionDiagnostic : IEquatable<SessionDiagnostic>
- Inheritance
-
SessionDiagnostic
- Implements
- Inherited Members
Properties
Code
The diagnostic's code (e.g. VBC09319), or an empty string when the provider gave none.
public string Code { get; init; }
Property Value
Column
The one-based column on Line.
public int Column { get; init; }
Property Value
Line
The one-based physical line of the analyzed source it was reported against.
public int Line { get; init; }
Property Value
Remarks
Physical, not logical: the client supplied the source, so only the client knows what its own lines mean — a shell whose buffer is numbered maps this back to the line number the user typed.
Message
What is wrong, in one line.
public string Message { get; init; }
Property Value
Severity
How bad it is.
public SessionDiagnosticSeverity Severity { get; init; }