summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-05 14:08:54 -0500
committerpommicket <pommicket@gmail.com>2023-01-05 14:08:54 -0500
commitda244a2bfb1e1139e772e272166fc0ecd4898ad4 (patch)
tree7f610d86553fc3cbbef520fe51a800cc7190276c /lsp-write.c
parent3e0548caa2cf7d6b32cc029dbc9044ef877f6cee (diff)
lsp-configuration option
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/lsp-write.c b/lsp-write.c
index c32b8f6..56f8e7d 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -295,7 +295,7 @@ 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:
+ case LSP_REQUEST_CONFIGURATION:
return "workspace/didChangeConfiguration";
case LSP_REQUEST_WORKSPACE_SYMBOLS:
return "workspace/symbol";
@@ -613,17 +613,13 @@ void write_request(LSP *lsp, LSPRequest *request) {
write_obj_end(o);
write_obj_end(o);
} break;
- case LSP_REQUEST_JDTLS_CONFIGURATION:
+ case LSP_REQUEST_CONFIGURATION: {
+ const LSPRequestConfiguration *config = &request->data.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_key(o, "settings");
+ str_builder_append(&o->builder, config->settings);
write_obj_end(o);
- break;
+ } break;
}
write_obj_end(o);