Optional
code?: integer | stringOptional
codeAn optional property to describe the error code.
Optional
data?: unknownA data entry field that is preserved between a textDocument/publishDiagnostics
notification and textDocument/codeAction
request.
Optional
index?: numberIn case of a multi-value property (array), an index can be given to select a specific element.
Optional
keyword?: stringIf the value of a keyword is given, the diagnostic will appear at its corresponding text region
The AST node to which the diagnostic is attached.
Optional
property?: PIf a property name is given, the diagnostic is restricted to the corresponding text region.
Optional
range?: RangeIf you want to create a diagnostic independent to any property, use the range property.
Optional
relatedAn array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
Optional
tags?: DiagnosticTag[]Additional metadata about the diagnostic.
The diagnostic's code, which usually appear in the user interface.