summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-20 20:39:43 -0500
committerpommicket <pommicket@gmail.com>2022-12-20 20:39:43 -0500
commit885df8890e537383df71f8f828444d6c5cce0243 (patch)
tree469388524c6738c3c44d9ee45c5d114b6ed0cb44 /lsp.h
parentd3375f02cfed99ed40c28631e62654af23817729 (diff)
more completion
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lsp.h b/lsp.h
index d8604b4..6245623 100644
--- a/lsp.h
+++ b/lsp.h
@@ -127,7 +127,11 @@ typedef struct {
} LSPTextEdit;
typedef struct {
+ // display text for this completion
LSPString label;
+ // text used to filter completions
+ LSPString filter_text;
+ // the edit to be applied when this completion is selected.
LSPTextEdit text_edit;
// note: the items are sorted here in this file,
// so you probably don't need to access this.
@@ -141,7 +145,7 @@ typedef struct {
typedef LSPRequestType LSPResponseType;
typedef struct {
- LSPResponseType type;
+ LSPRequest request; // the request which this is a response to
// LSP responses tend to have a lot of strings.
// to avoid doing a ton of allocations+frees,
// they're all stored here.