Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Sep 27, 2023
1 parent b25efa3 commit 1adb6b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2053,9 +2053,8 @@ class MetalsLspService(
!buildTools.isAutoConnectable()
&& buildTools.loadSupported.isEmpty
&& folder.isScalaProject()
) {
scalaCli.setupIDE(folder)
} else Future.successful(())
) scalaCli.setupIDE(folder)
else Future.successful(())
}

private def slowConnectToBloopServer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class WorkspaceFolders(
if (!isIn(services, folder)) {
WorkspaceFoldersServices(
services :+ newService,
nonScalaProjects.filter(_ == folder),
nonScalaProjects.filterNot(_ == folder),
)
} else wfs
}
Expand All @@ -101,14 +101,6 @@ class WorkspaceFolders(

}

trait MetalsLspServiceCreator {
def apply(
folder: Folder,
updateLoggerFiles: () => Future[Unit],
forceIsScalaProject: Boolean = false,
): MetalsLspService
}

case class WorkspaceFoldersServices(
services: List[MetalsLspService],
nonScalaFolders: List[Folder],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class MetalsLanguageServer(
serverState.set(ServerState.Initialized(service))
metalsService.underlying = service

folderPaths.foreach(folder =>
folderPathsWithScala.foreach(folder =>
new StdReportContext(folder.toNIO).cleanUpOldReports()
)

Expand Down

0 comments on commit 1adb6b2

Please sign in to comment.