Merge pull request #6401 from adpi2/fix-6176

Sanitize sbt-launch-jar in BSP connection details
This commit is contained in:
eugene yokota 2021-03-17 17:44:59 -04:00 committed by GitHub
commit 2e930987e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ object BuildServerConnection {
val sbtLaunchJar = classPath
.split(File.pathSeparator)
.find(jar => SbtLaunchJar.findFirstIn(jar).nonEmpty)
.map(_.replaceAllLiterally(" ", "%20"))
val argv =
Vector(
s"$javaHome/bin/java",