summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 18:28:56 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 18:28:56 -0500
commite112a90ff73f7f407ed2251f905565713c237bc1 (patch)
treefd2cca33161c807cbbf8b29d9a49e778bee5aca8 /lsp-write.c
parent1eaef3694d54d3d92f0b43304c72f5148b4e5db9 (diff)
start signature help
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index ffa5337..835cfce 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -251,6 +251,8 @@ static const char *lsp_request_method(LSPRequest *request) {
return "textDocument/didChange";
case LSP_REQUEST_COMPLETION:
return "textDocument/completion";
+ case LSP_REQUEST_SIGNATURE_HELP:
+ return "textDocument/signatureHelp";
case LSP_REQUEST_WORKSPACE_FOLDERS:
return "workspace/workspaceFolders";
case LSP_REQUEST_DID_CHANGE_WORKSPACE_FOLDERS:
@@ -275,6 +277,7 @@ static bool request_type_is_notification(LSPRequestType type) {
case LSP_REQUEST_SHOW_MESSAGE:
case LSP_REQUEST_LOG_MESSAGE:
case LSP_REQUEST_COMPLETION:
+ case LSP_REQUEST_SIGNATURE_HELP:
case LSP_REQUEST_WORKSPACE_FOLDERS:
return false;
}
@@ -386,6 +389,10 @@ static void write_request(LSP *lsp, LSPRequest *request) {
write_obj_end(o);
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_obj_end(o);
write_obj_end(o);
write_key_obj_start(o, "workspace");
write_key_bool(o, "workspaceFolders", true);