Diagnostic

open class Diagnostic(source)

Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a file.

Online Documentation

Constructors

Link copied to clipboard
constructor(range: Range, message: String, severity: DiagnosticSeverity = definedExternally)

Creates a new diagnostic object.

Properties

Link copied to clipboard

The human-readable message.

Link copied to clipboard

The range to which this diagnostic applies.

Link copied to clipboard

An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.

Link copied to clipboard

The severity, default is error.

Link copied to clipboard

A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.

Link copied to clipboard

Additional metadata about the diagnostic.