forked from qt-creator/qt-creator
LanguageClient: send client signature help capabilities
Change-Id: I5b45c6842cd53e1be43f3630a9a2ca12b69f70fd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -219,6 +219,13 @@ static ClientCapabilities generateClientCapabilities()
|
|||||||
rename.setDynamicRegistration(true);
|
rename.setDynamicRegistration(true);
|
||||||
documentCapabilities.setRename(rename);
|
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.setReferences(allowDynamicRegistration);
|
||||||
documentCapabilities.setDocumentHighlight(allowDynamicRegistration);
|
documentCapabilities.setDocumentHighlight(allowDynamicRegistration);
|
||||||
documentCapabilities.setDefinition(allowDynamicRegistration);
|
documentCapabilities.setDefinition(allowDynamicRegistration);
|
||||||
|
Reference in New Issue
Block a user