Debian Codegraph @

LspCpp/include/LibLsp/lsp/textDocument/publishDiagnostics.h

raw
1 #pragma once
2
3 #include "LibLsp/JsonRpc/NotificationInMessage.h"
4 #include "LibLsp/lsp/lsp_diagnostic.h"
5
6 // Diagnostics
7 namespace TextDocumentPublishDiagnostics
8 {
9 struct Params
10 {
11 // The URI for which diagnostic information is reported.
12 lsDocumentUri uri;
13
14 // An array of diagnostic information items.
15 std::vector<lsDiagnostic> diagnostics;
16 MAKE_SWAP_METHOD(Params, uri, diagnostics);
17 };
18
19 }; // namespace TextDocumentPublishDiagnostics
20 MAKE_REFLECT_STRUCT(TextDocumentPublishDiagnostics::Params, uri, diagnostics);
21
22 /**
23 * Diagnostics notifications are sent from the server to the client to
24 * signal results of validation runs.
25 */
26 DEFINE_NOTIFICATION_TYPE(
27 Notify_TextDocumentPublishDiagnostics, TextDocumentPublishDiagnostics::Params, "textDocument/publishDiagnostics"
28 );