Search in sources :

Example 1 with SignatureHelpOptions

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);
        }
    }
}
Also used : CompletionOptions(org.graalvm.tools.lsp.server.types.CompletionOptions) SignatureHelpOptions(org.graalvm.tools.lsp.server.types.SignatureHelpOptions)

Aggregations

CompletionOptions (org.graalvm.tools.lsp.server.types.CompletionOptions)1 SignatureHelpOptions (org.graalvm.tools.lsp.server.types.SignatureHelpOptions)1