summaryrefslogtreecommitdiff
path: root/lsp.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.c
parentf57b21c5a6ac9913e3b9727abfed951708917250 (diff)
fixed (all?) problems with signature help
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
index f2729f5..47b2b72 100644
--- a/lsp.c
+++ b/lsp.c
@@ -45,6 +45,7 @@ static void lsp_request_free(LSPRequest *r) {
case LSP_REQUEST_SIGNATURE_HELP:
case LSP_REQUEST_DID_CLOSE:
case LSP_REQUEST_WORKSPACE_FOLDERS:
+ case LSP_REQUEST_JDTLS_CONFIGURATION:
break;
case LSP_REQUEST_DID_OPEN: {
LSPRequestDidOpen *open = &r->data.open;
@@ -132,6 +133,9 @@ static bool lsp_supports_request(LSP *lsp, const LSPRequest *request) {
case LSP_REQUEST_SHUTDOWN:
case LSP_REQUEST_EXIT:
return true;
+ case LSP_REQUEST_JDTLS_CONFIGURATION:
+ // @TODO: check if this is actually jdtls
+ return lsp->language == LANG_JAVA;
case LSP_REQUEST_COMPLETION:
return cap->completion_support;
case LSP_REQUEST_SIGNATURE_HELP: