From bc7845e931998ba9d1e26bb9fa9811d7e930b7a7 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Thu, 29 Jun 2023 18:09:18 +0200 Subject: [PATCH] improvement: Show current compilation queue when debugging flag is on Seems I am having an issue from time to time, which I can't reproduce. The debug might help out here. --- .../main/scala/scala/meta/internal/metals/BatchedFunction.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/metals/src/main/scala/scala/meta/internal/metals/BatchedFunction.scala b/metals/src/main/scala/scala/meta/internal/metals/BatchedFunction.scala index cfcf2c49bda..70aac0e119c 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/BatchedFunction.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/BatchedFunction.scala @@ -40,6 +40,7 @@ final class BatchedFunction[A, B]( callback: () => Unit, ): Future[B] = { val promise = Promise[B]() + scribe.debug(queue.toArray().mkString(",")) queue.add(Request(arguments, promise, callback)) runAcquire() promise.future