From 887c8e31d5ae714e5e480f20a8118774335c6442 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Thu, 19 Dec 2024 18:19:08 +0100 Subject: [PATCH] bugfix: Log message by default Turns out it was actually set in a totally different place, which I haven't realized. --- .../main/scala/scala/meta/internal/metals/StatusBarConfig.scala | 2 +- .../src/test/scala/tests/ServerLivenessMonitorLspSuite.scala | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/metals/src/main/scala/scala/meta/internal/metals/StatusBarConfig.scala b/metals/src/main/scala/scala/meta/internal/metals/StatusBarConfig.scala index 48fe4223124..61e108158e9 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/StatusBarConfig.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/StatusBarConfig.scala @@ -18,6 +18,6 @@ object StatusBarConfig { ) def bspDefault = new StatusBarConfig( - System.getProperty("metals.bsp-status-bar", "show-message") + System.getProperty("metals.bsp-status-bar", "log-message") ) } diff --git a/tests/unit/src/test/scala/tests/ServerLivenessMonitorLspSuite.scala b/tests/unit/src/test/scala/tests/ServerLivenessMonitorLspSuite.scala index ec16b8f9a02..f8dcabc3127 100644 --- a/tests/unit/src/test/scala/tests/ServerLivenessMonitorLspSuite.scala +++ b/tests/unit/src/test/scala/tests/ServerLivenessMonitorLspSuite.scala @@ -7,6 +7,7 @@ import scala.meta.internal.metals.Icons import scala.meta.internal.metals.Messages import scala.meta.internal.metals.MetalsEnrichments._ import scala.meta.internal.metals.MetalsServerConfig +import scala.meta.internal.metals.StatusBarConfig import bill.Bill import ch.epfl.scala.bsp4j.BuildTargetIdentifier @@ -18,6 +19,7 @@ class ServerLivenessMonitorLspSuite extends BaseLspSuite("liveness-monitor") { MetalsServerConfig.default.copy( metalsToIdleTime = Duration("3m"), pingInterval = pingInterval, + bspStatusBar = StatusBarConfig.showMessage, ) test("handle-not-responding-server") {