OptionalcodeOptionalcodeAn optional property to describe the error code.
OptionaldataA data entry field that is preserved between a textDocument/publishDiagnostics notification and textDocument/codeAction request.
OptionalindexIn case of a multi-value property (array), an index can be given to select a specific element.
OptionalkeywordIf 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.
OptionalpropertyIf a property name is given, the diagnostic is restricted to the corresponding text region.
OptionalrangeIf you want to create a diagnostic independent to any property, use the range property.
OptionalrelatedAn array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
OptionaltagsAdditional metadata about the diagnostic.
The diagnostic's code, which usually appear in the user interface.