summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
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);