From eab9dc8ff2fb68df8039933af754cd6285527937 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 22 Jan 2021 10:12:16 +0100 Subject: [PATCH] LanguageClient: send client signature help capabilities Change-Id: I5b45c6842cd53e1be43f3630a9a2ca12b69f70fd Reviewed-by: Christian Stenger --- src/plugins/languageclient/client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index 7c62a6bca27..7adebba6c32 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -219,6 +219,13 @@ static ClientCapabilities generateClientCapabilities() rename.setDynamicRegistration(true); documentCapabilities.setRename(rename); + TextDocumentClientCapabilities::SignatureHelpCapabilities signatureHelp; + signatureHelp.setDynamicRegistration(true); + TextDocumentClientCapabilities::SignatureHelpCapabilities::SignatureInformationCapabilities info; + info.setDocumentationFormat({MarkupKind::markdown, MarkupKind::plaintext}); + signatureHelp.setSignatureInformation(info); + documentCapabilities.setSignatureHelp(signatureHelp); + documentCapabilities.setReferences(allowDynamicRegistration); documentCapabilities.setDocumentHighlight(allowDynamicRegistration); documentCapabilities.setDefinition(allowDynamicRegistration);