LSP::Diagnostic
Inherits JSON::Serializable < LSP::Initializer < Reference < Object
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource. See: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#diagnostic
Constructors
Instance methods
The diagnostic's code, which might appear in the user interface.
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
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'.