use of org.graalvm.tools.lsp.server.types.LanguageServer.DelegateServer in project graal by oracle.
the class DelegateServers method mergeResults.
public Object mergeResults(Object id, Object result) {
Object allResults = result;
for (DelegateServer ds : delegateServers) {
try {
JSONObject message = ds.awaitMessage(id);
if (message != null && logger.isLoggable(Level.FINER)) {
String format = "[Trace - %s] Received response from %s: %s";
logger.log(Level.FINER, String.format(format, Instant.now().toString(), ds.toString(), message.toString()));
}
allResults = mergeResults(allResults, message);
} catch (InterruptedException iex) {
}
}
return allResults;
}
Aggregations