* IMPORTANT: at the moment, most stuff is key/value with strings, if the format is more finalized, one can introduce better type for more efficiency/type
* safety
*
* message body, can have different formats, lookup order will be:
*
* message["plainText"] => plain text string to display
* message["markDown"] => markdown string to display, we use QTextDocument with MarkdownDialectGitHub
* message["html"] => HTML string to display, we use QTextDocument, that means only a subset of HTML https://doc.qt.io/qt-5/richtext-html-subset.html
*
* the first thing found will be used.
*
* message type, we support at the moment
*
* message["type"] = "Error"
* message["type"] = "Warning"
* message["type"] = "Info"
* message["type"] = "Log"
*
* this is take from https://microsoft.github.io/language-server-protocol/specification#window_showMessage MessageType of LSP
*
* will lead to appropriate icons/... in the output view
*
*/
voidslotMessage(constQVariantMap&message);
...
...
@@ -51,6 +123,11 @@ private:
* Our message model, at the moment a standard item model
*/
QStandardItemModelm_messagesModel;
/**
* Our special output delegate for the message body