summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-07 07:19:56 -0400
committerpommicket <pommicket@gmail.com>2023-08-07 07:19:56 -0400
commitb146279b48f6a4f4bea8946cb3f0f1f5cc5a9985 (patch)
tree70069f2f622f3b6190fa1effcfb9ce9e14d8f94b /lsp.h
parentbdbce6fe3c647616d22867bbc82e011c91231dd3 (diff)
handle more complicated renames
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;