summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 17:23:28 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 17:23:28 -0500
commitdc8d64a02d99368d2a66cff6caf5a18de3f06bd2 (patch)
treea8a35ac6551d03d1ba97960d2ea61d02722f9548 /lsp-write.c
parent29c5c9b7544243a161d403b66ddfa11b6cdbbcf6 (diff)
better signature help
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lsp-write.c b/lsp-write.c
index 5898109..edd4934 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -365,6 +365,7 @@ static void write_request(LSP *lsp, LSPRequest *request) {
write_key_obj_start(o, "params");
write_key_number(o, "processId", process_get_id());
write_key_obj_start(o, "capabilities");
+ // here are the client capabilities for ted
write_key_obj_start(o, "textDocument");
write_key_obj_start(o, "completion");
// completion capabilities
@@ -398,11 +399,14 @@ static void write_request(LSP *lsp, LSPRequest *request) {
write_key_bool(o, "contextSupport", true);
write_obj_end(o);
write_key_obj_start(o, "signatureHelp");
- // we don't have context support because sending the activeSignatureHelp member is annoying
- //write_key_bool(o, "contextSupport", true);
write_key_obj_start(o, "signatureInformation");
+ write_key_obj_start(o, "parameterInformation");
+ write_key_bool(o, "labelOffsetSupport", true);
+ write_obj_end(o);
write_key_bool(o, "activeParameterSupport", true);
write_obj_end(o);
+ // we don't have context support because sending the activeSignatureHelp member is annoying
+ //write_key_bool(o, "contextSupport", true);
write_obj_end(o);
write_obj_end(o);
write_key_obj_start(o, "workspace");