Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Diagnostic

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(1)

Properties(7)

Constructors(1)

constructor

Properties(7)

range

range: Range

The range to which this diagnostic applies.

message

message: string

The human-readable message.

severity

The severity, default is error.

Optional source

source: string

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

Optional code

code: string | number | { value: string | number; target: Uri }

A code or identifier for this diagnostic. Should be used for later processing, e.g. when providing code actions.

Optional relatedInformation

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.

Optional tags

Additional metadata about the diagnostic.

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网