summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/lsp.h b/lsp.h
index 4e5cf03..ab095f5 100644
--- a/lsp.h
+++ b/lsp.h
@@ -491,13 +491,15 @@ typedef struct {
} LSPResponseDocumentLink;
typedef struct {
- LSPRequest request; // the request which this is a response to
- char *error; // if not NULL, the data field will just be zeroed
- // LSP responses tend to have a lot of strings.
- // to avoid doing a ton of allocations+frees,
- // they're all stored here.
+ /// the request which this is a response to
+ LSPRequest request;
+ /// if not NULL, the data field will just be zeroed
+ char *error;
+ /// LSP responses tend to have a lot of strings.
+ /// to avoid doing a ton of allocations+frees,
+ /// they're all stored here.
char *string_data;
- // one of these is filled based on request.type
+ /// one of these is filled based on request.type
union {
LSPResponseCompletion completion;
LSPResponseSignatureHelp signature_help;