diff --git a/metals/src/main/scala/scala/meta/internal/builds/BSPErrorHandler.scala b/metals/src/main/scala/scala/meta/internal/builds/BSPErrorHandler.scala index b35e81d2e86..8f3a66f5d52 100644 --- a/metals/src/main/scala/scala/meta/internal/builds/BSPErrorHandler.scala +++ b/metals/src/main/scala/scala/meta/internal/builds/BSPErrorHandler.scala @@ -13,7 +13,8 @@ class ShowBspErrorHandler( currentSession: () => Option[BspSession], tables: Tables, bspStatus: ConnectionBspStatus, -)(implicit reportContext: ReportContext) extends BspErrorHandler { +)(implicit reportContext: ReportContext) + extends BspErrorHandler { def onError(message: String): Unit = { if (shouldShowBspError) { for { diff --git a/metals/src/main/scala/scala/meta/internal/metals/BspMetalsLspService.scala b/metals/src/main/scala/scala/meta/internal/metals/BspMetalsLspService.scala index 3fb888dec59..60b25a70b26 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/BspMetalsLspService.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/BspMetalsLspService.scala @@ -270,7 +270,7 @@ class BspMetalsLspService( maybeJdkVersion, getVisibleName, Some(buildTools), - Some(connectionBspStatus) + Some(connectionBspStatus), ) val gitHubIssueFolderInfo = new GitHubIssueFolderInfo( @@ -521,7 +521,9 @@ class BspMetalsLspService( } } - override protected def onDeleteWatchedFiles(files: List[AbsolutePath]): Unit = { + override protected def onDeleteWatchedFiles( + files: List[AbsolutePath] + ): Unit = { val (bloopReportDelete, otherDeleteEvents) = files.partition(_.toNIO.startsWith(reports.bloop.maybeReportsDir)) if (bloopReportDelete.nonEmpty) connectionBspStatus.onReportsUpdate() diff --git a/metals/src/main/scala/scala/meta/internal/metals/FallbackMetalsLspService.scala b/metals/src/main/scala/scala/meta/internal/metals/FallbackMetalsLspService.scala index 646c6031e5d..c660c955565 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/FallbackMetalsLspService.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/FallbackMetalsLspService.scala @@ -70,7 +70,7 @@ class FallbackMetalsLspService( maybeJdkVersion, folderName = getVisibleName, buildTools = None, - bspStatus = None + bspStatus = None, ) override protected def bspSession: Option[BspSession] = None override protected def buildServerPromise: Promise[Unit] = diff --git a/metals/src/main/scala/scala/meta/internal/metals/MetalsLspService.scala b/metals/src/main/scala/scala/meta/internal/metals/MetalsLspService.scala index 6735eb050ce..18c33800268 100644 --- a/metals/src/main/scala/scala/meta/internal/metals/MetalsLspService.scala +++ b/metals/src/main/scala/scala/meta/internal/metals/MetalsLspService.scala @@ -757,7 +757,8 @@ abstract class MetalsLspService( userConfig.showInferredType != old.showInferredType ) { buildServerPromise.future.flatMap { _ => - focusedDocument().map(publishSynthetics(_, force = true)) + focusedDocument() + .map(publishSynthetics(_, force = true)) .getOrElse(Future.successful(())) } } else { @@ -1001,7 +1002,8 @@ abstract class MetalsLspService( onChange(changeAndCreateEvents.map(_.getUri().toAbsolutePath)) } - protected def onDeleteWatchedFiles(files: List[AbsolutePath]): Unit = files.foreach(onDelete) + protected def onDeleteWatchedFiles(files: List[AbsolutePath]): Unit = + files.foreach(onDelete) /** * This filter is an optimization and it is closely related to which files are @@ -1071,7 +1073,8 @@ abstract class MetalsLspService( compilations .compileFiles(paths, Option(focusedDocumentBuildTarget.get())), ) ++ paths.map(f => Future(interactiveSemanticdbs.textDocument(f))) - ).ignoreValue + ) + .ignoreValue } protected def onDelete(path: AbsolutePath): Future[Unit] = {