Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Diagnostic

Index

Constructors

Properties

code?: string | number

A code or identifier for this diagnostics. Will not be surfaced to the user, but should be used for later processing, e.g. when providing code actions.

message: string

The human-readable message.

range: Range

The range to which this diagnostic applies.

relatedInformation?: DiagnosticRelatedInformation[]

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

The severity, default is error.

source?: string

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

tags?: DiagnosticTag[]

Additional metadata about the diagnostic.