Diagnostic Class

Definition

Class which represents a source code diagnostic message.

See the Language Server Protocol specification for additional information.

C++
public ref class Diagnostic
C++
public ref class Diagnostic : IEquatable<Microsoft::VisualStudio::LanguageServer::Protocol::Diagnostic ^>
Inheritance
Diagnostic
Attributes
Implements

Constructors

Properties

Code

Gets or sets the diagnostic's code, which usually appear in the user interface.

CodeDescription

Gets or sets an optional value that describes the error code.

Message

Gets or sets the diagnostic's message.

Range

Gets or sets the source code range.

Severity

Gets or sets the diagnostic severity.

Source

Gets or sets a human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. It usually appears in the user interface.

Tags

Gets or sets the diagnostic's tags.

Methods

Equals(Diagnostic)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)
GetHashCode()

Serves as the default hash function.

Operators

Applies to

Produit Versions
Visual Studio SDK 2017, 2019, 2022