summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 13:52:15 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 13:52:15 -0500
commit29c5c9b7544243a161d403b66ddfa11b6cdbbcf6 (patch)
tree28df44016f452f70c80bbcda276ff457b3f810f5 /lsp-write.c
parentf57b21c5a6ac9913e3b9727abfed951708917250 (diff)
fixed (all?) problems with signature help
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index 406faa5..5898109 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -262,6 +262,8 @@ static const char *lsp_request_method(LSPRequest *request) {
return "workspace/workspaceFolders";
case LSP_REQUEST_DID_CHANGE_WORKSPACE_FOLDERS:
return "workspace/didChangeWorkspaceFolders";
+ case LSP_REQUEST_JDTLS_CONFIGURATION:
+ return "workspace/didChangeConfiguration";
}
assert(0);
return "$/ignore";
@@ -276,6 +278,7 @@ static bool request_type_is_notification(LSPRequestType type) {
case LSP_REQUEST_DID_CLOSE:
case LSP_REQUEST_DID_CHANGE:
case LSP_REQUEST_DID_CHANGE_WORKSPACE_FOLDERS:
+ case LSP_REQUEST_JDTLS_CONFIGURATION:
return true;
case LSP_REQUEST_INITIALIZE:
case LSP_REQUEST_SHUTDOWN:
@@ -499,6 +502,17 @@ static void write_request(LSP *lsp, LSPRequest *request) {
write_obj_end(o);
write_obj_end(o);
} break;
+ case LSP_REQUEST_JDTLS_CONFIGURATION:
+ write_key_obj_start(o, "params");
+ write_key_obj_start(o, "settings");
+ write_key_obj_start(o, "java");
+ write_key_obj_start(o, "signatureHelp");
+ write_key_bool(o, "enabled", true);
+ write_obj_end(o);
+ write_obj_end(o);
+ write_obj_end(o);
+ write_obj_end(o);
+ break;
}
write_obj_end(o);