Search in sources :

Example 1 with ISignatureHelpService

use of org.eclipse.xtext.ide.server.signatureHelp.ISignatureHelpService in project xtext-core by eclipse.

the class LanguageServerImpl method signatureHelp.

/**
 * Compute the signature help. Executed in a read request.
 * @since 2.20
 */
protected SignatureHelp signatureHelp(SignatureHelpParams params, CancelIndicator cancelIndicator) {
    URI uri = getURI(params);
    ISignatureHelpService helper = getService(uri, ISignatureHelpService.class);
    if (helper == null) {
        return ISignatureHelpService.EMPTY;
    }
    return workspaceManager.doRead(uri, (doc, resource) -> helper.getSignatureHelp(doc, resource, params, cancelIndicator));
}
Also used : ISignatureHelpService(org.eclipse.xtext.ide.server.signatureHelp.ISignatureHelpService) URI(org.eclipse.emf.common.util.URI)

Aggregations

URI (org.eclipse.emf.common.util.URI)1 ISignatureHelpService (org.eclipse.xtext.ide.server.signatureHelp.ISignatureHelpService)1