diff --git a/build.sbt b/build.sbt index c8d313159..62cc90d18 100644 --- a/build.sbt +++ b/build.sbt @@ -129,7 +129,7 @@ lazy val metalsRunner = project maintainer := "scalacenter", scalaVersion := ScalaVersions.stableLTS, libraryDependencies ++= Seq( - "org.scalameta" % "metals" % "1.4.2" cross (CrossVersion.for3Use2_13), + "org.scalameta" % "metals" % "1.6.3" cross (CrossVersion.for3Use2_13), "org.eclipse.lsp4j" % "org.eclipse.lsp4j" % "0.21.1", "org.http4s" %% "http4s-ember-server" % "0.23.24", "org.http4s" %% "http4s-ember-client" % "0.23.24", diff --git a/metals-runner/src/main/scala/org/scastie/metals/PresentationCompilers.scala b/metals-runner/src/main/scala/org/scastie/metals/PresentationCompilers.scala index 513bc710f..36b0f0253 100644 --- a/metals-runner/src/main/scala/org/scastie/metals/PresentationCompilers.scala +++ b/metals-runner/src/main/scala/org/scastie/metals/PresentationCompilers.scala @@ -71,9 +71,9 @@ class PresentationCompilers[F[_]: Async](metalsWorkingDirectory: Path) { // service loader must be blocking as it's not thread safe private val serviceLoader: F[BlockingServiceLoader[F]] = Semaphore[F](1).map(BlockingServiceLoader.instance[F]) - val index = OnDemandSymbolIndex.empty()( - using EmptyReportContext - ) + given ReportContext = EmptyReportContext + + val index = OnDemandSymbolIndex.empty() val docs = new Docstrings(index)