summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp-parse.c b/lsp-parse.c
index 5337de5..df87a13 100644
--- a/lsp-parse.c
+++ b/lsp-parse.c
@@ -714,7 +714,7 @@ static bool parse_diagnostic(LSP *lsp, LSPRequest *request, const JSON *json, JS
return false;
diagnostic_out->message = lsp_request_add_json_string(
request, json,
- json_object_get_string(json, diagnostic_in, "request")
+ json_object_get_string(json, diagnostic_in, "message")
);
JSONValue severity_val = json_object_get(json, diagnostic_in, "severity");
LSPDiagnosticSeverity severity = LSP_DIAGNOSTIC_SEVERITY_INFORMATION;