@Override
    public CompletableFuture<SemanticTokens> semanticTokensFull(SemanticTokensParams params) {
        return CompletableFutures.computeAsync((cancelChecker) -> {
            try {
                EventDocumentContext context = eventContextCreator.createContext(params);
                if (context.document.getDocumentType() == DocumentType.YQL) {
                    return YQLPlusSemanticTokens.getSemanticTokens(context);
                }
                return SchemaSemanticTokens.getSemanticTokens(context);
                 
            } catch (InvalidContextException ex) {
                // ignore
            } catch (CancellationException ignore) {
                // Ignore cancellation exception
            } catch (Exception e) {
                logger.error(e);
            }

            return new SemanticTokens(new ArrayList<>());
        });
    }
SchemaTextDocumentService handles incomming requests from the client.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/SchemaTextDocumentService.java