Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a file.
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a file.
(code diagnostic)
A code or identifier for this diagnostic. Should be used for later processing, e.g. when providing {@link CodeActionContext code actions}.
Returns: string | number | { value: string | number; target: Uri; } | undefined
A code or identifier for this diagnostic. Should be used for later processing, e.g. when providing {@link CodeActionContext code actions}. **Returns:** `string | number | { value: string | number; target: Uri; } | undefined`
(message diagnostic)
The human-readable message.
Returns: string
The human-readable message. **Returns:** `string`
(range diagnostic)
The range to which this diagnostic applies.
Returns: Range
The range to which this diagnostic applies. **Returns:** `Range`
(related-information diagnostic)
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
Returns: DiagnosticRelatedInformation[] | undefined
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property. **Returns:** `DiagnosticRelatedInformation[] | undefined`
(set-code! diagnostic value)
A code or identifier for this diagnostic. Should be used for later processing, e.g. when providing {@link CodeActionContext code actions}.
A code or identifier for this diagnostic. Should be used for later processing, e.g. when providing {@link CodeActionContext code actions}.
(set-message! diagnostic value)
The human-readable message.
The human-readable message.
(set-range! diagnostic value)
The range to which this diagnostic applies.
The range to which this diagnostic applies.
(set-related-information! diagnostic value)
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
(set-severity! diagnostic value)
The severity, default is {@link DiagnosticSeverity.Error error}.
The severity, default is {@link DiagnosticSeverity.Error error}.
(set-source! diagnostic value)
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
(set-tags! diagnostic value)
Additional metadata about the diagnostic.
Additional metadata about the diagnostic.
(severity diagnostic)
The severity, default is {@link DiagnosticSeverity.Error error}.
Returns: DiagnosticSeverity
The severity, default is {@link DiagnosticSeverity.Error error}. **Returns:** `DiagnosticSeverity`
(source diagnostic)
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
Returns: string | undefined
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. **Returns:** `string | undefined`
(tags diagnostic)
Additional metadata about the diagnostic.
Returns: DiagnosticTag[] | undefined
Additional metadata about the diagnostic. **Returns:** `DiagnosticTag[] | undefined`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close