Optional
codeOptional
codeAn optional property to describe the error code.
Optional
dataA data entry field that is preserved between a textDocument/publishDiagnostics
notification and textDocument/codeAction
request.
Optional
indexIn case of a multi-value property (array), an index can be given to select a specific element.
Optional
keywordIf 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
propertyIf a property name is given, the diagnostic is restricted to the corresponding text region.
Optional
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
tagsAdditional metadata about the diagnostic.
The diagnostic's code, which usually appear in the user interface.