From 885df8890e537383df71f8f828444d6c5cce0243 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 20 Dec 2022 20:39:43 -0500 Subject: more completion --- lsp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lsp.h') 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. -- cgit v1.2.3