From e537ad6aacff9381d846e8247b1da79cd48a7675 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Wed, 14 Aug 2024 19:36:20 +0200 Subject: [PATCH] bugfix: Make sure best effort works with verbose --- .../main/scala/scala/meta/internal/metals/Compilations.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/metals/src/main/scala/scala/meta/internal/metals/Compilations.scala b/metals/src/main/scala/scala/meta/internal/metals/Compilations.scala index 31134a6ccc1..14db0a6943c 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/Compilations.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/Compilations.scala @@ -264,9 +264,8 @@ final class Compilations( if ( userConfiguration().verboseCompilation && (connection.isBloop || connection.isScalaCLI) ) { - params.setArguments(List("--verbose").asJava) - } - params.setArguments(List("--best-effort").asJava) + params.setArguments(List("--verbose", "--best-effort").asJava) + } else { params.setArguments(List("--best-effort").asJava) } targets.foreach { target => isCompiling(target) = true }