wex v26.10.0
wex::diagnostic_item Struct Reference

Represents a single diagnostic item(error, warning, etc.). More...

#include <wex/ui/lsp.h>

Public Member Functions

 diagnostic_item (const range_item &r=range_item(), std::string msg=std::string())
 Default constructor, taking a range, and a message.
 diagnostic_item (const boost::json::object &obj)
 Constructor from a JSON object, as received from the language server.

Public Attributes

severity_t severity {severity_t::INFO}
 Severity of the diagnostic.

Detailed Description

Represents a single diagnostic item(error, warning, etc.).