diff --git a/build.sbt b/build.sbt index 132fa353b..aede6d44c 100644 --- a/build.sbt +++ b/build.sbt @@ -127,7 +127,7 @@ lazy val metalsRunner = project maintainer := "scalacenter", scalaVersion := ScalaVersions.stableLTS, libraryDependencies ++= Seq( - "org.scalameta" % "metals" % "1.2.0" cross (CrossVersion.for3Use2_13), + "org.scalameta" % "metals" % "1.3.0" 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/scastie/metals/ScastieSymbolSearch.scala b/metals-runner/src/main/scala/scastie/metals/ScastieSymbolSearch.scala index 5ca6d4221..7b3154dd0 100644 --- a/metals-runner/src/main/scala/scastie/metals/ScastieSymbolSearch.scala +++ b/metals-runner/src/main/scala/scastie/metals/ScastieSymbolSearch.scala @@ -18,7 +18,7 @@ class ScastieSymbolSearch(docs: Docstrings, classpathSearch: ClasspathSearch) ex visitor: SymbolSearchVisitor ): SymbolSearch.Result = { if query.nonEmpty then - classpathSearch.search(WorkspaceSymbolQuery.exact(query), visitor) + classpathSearch.search(WorkspaceSymbolQuery.exact(query), visitor)._1 else SymbolSearch.Result.INCOMPLETE } @@ -28,7 +28,7 @@ class ScastieSymbolSearch(docs: Docstrings, classpathSearch: ClasspathSearch) ex visitor: SymbolSearchVisitor ): SymbolSearch.Result = { if query.nonEmpty then - classpathSearch.search(WorkspaceSymbolQuery.exact(query), visitor) + classpathSearch.search(WorkspaceSymbolQuery.exact(query), visitor)._1 else SymbolSearch.Result.INCOMPLETE }