Merge pull request #6761 from gontard/fixBspConfig

Ensure sbtConfig argv does not need sbt in the path
This commit is contained in:
eugene yokota 2021-12-25 14:48:57 -05:00 committed by GitHub
commit 45aa8cb75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -49,9 +49,11 @@ object BuildServerConnection {
"-Xmx100m",
"-classpath",
classPath,
"xsbt.boot.Boot",
"-bsp"
) ++ sbtScript.orElse(sbtLaunchJar)
) ++
sbtScript ++
Vector("xsbt.boot.Boot", "-bsp") ++
(if (sbtScript.isEmpty) sbtLaunchJar else None)
val details = BspConnectionDetails(name, sbtVersion, bspVersion, languages, argv)
val json = Converter.toJson(details).get
IO.write(bspConnectionFile, CompactPrinter(json), append = false)