Table of Contents

Class ToolDiagnostic

Namespace
RDCore.SDK.Assistant
Assembly
RDCore.SDK.Protocol.dll

A diagnostic of a document, as GetDiagnostics answers it.

public sealed record ToolDiagnostic : IEquatable<ToolDiagnostic>
Inheritance
ToolDiagnostic
Implements
Inherited Members

Properties

Code

The diagnostic's code (RDC01011, VBC00013).

public string Code { get; init; }

Property Value

string

HasFix

Whether a code action fixes it.

public bool HasFix { get; init; }

Property Value

bool

HelpUrl

The address of the page that documents the code; null for a code that has none.

public string? HelpUrl { get; init; }

Property Value

string

Location

Where the diagnostic is.

public required TextLocation Location { get; init; }

Property Value

TextLocation

Message

What it says, in the language of the client's user interface.

public string Message { get; init; }

Property Value

string

Severity

How severe it is.

public ToolDiagnosticSeverity Severity { get; init; }

Property Value

ToolDiagnosticSeverity