use of org.graalvm.tools.lsp.server.types.SignatureHelpOptions in project graal by oracle.
the class TruffleAdapter method setServerCapabilities.
public void setServerCapabilities(String languageId, ServerCapabilities capabilities) {
CompletionOptions completionProvider = capabilities.getCompletionProvider();
if (completionProvider != null) {
List<String> triggerCharacters = completionProvider.getTriggerCharacters();
if (triggerCharacters != null) {
completionTriggerCharacters.add(languageId, triggerCharacters);
}
}
SignatureHelpOptions signatureHelpProvider = capabilities.getSignatureHelpProvider();
if (signatureHelpProvider != null) {
List<String> triggerCharacters = signatureHelpProvider.getTriggerCharacters();
if (triggerCharacters != null) {
signatureTriggerCharacters.add(languageId, triggerCharacters);
}
}
}
Aggregations