-
-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
67 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package mill.bsp | ||
|
||
import ch.epfl.scala.bsp4j.BspConnectionDetails | ||
import scala.jdk.CollectionConverters._ | ||
import upickle.default._ | ||
|
||
case class BspConfigJson( | ||
name: String, | ||
argv: Seq[String], | ||
millVersion: String, | ||
bspVersion: String, | ||
languages: Seq[String] | ||
) extends BspConnectionDetails(name, argv.asJava, millVersion, bspVersion, languages.asJava) | ||
|
||
object BspConfigJson { | ||
implicit val rw: ReadWriter[BspConfigJson] = macroRW | ||
} |
2 changes: 1 addition & 1 deletion
2
.../mill/contrib/bsp/BspLoggedReporter.scala → bsp/src/mill/bsp/BspLoggedReporter.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mill.contrib.bsp | ||
package mill.bsp | ||
|
||
import java.io.File | ||
import java.util.concurrent.ConcurrentHashMap | ||
|
2 changes: 1 addition & 1 deletion
2
...rc/mill/contrib/bsp/BspTestReporter.scala → bsp/src/mill/bsp/BspTestReporter.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mill.contrib.bsp | ||
package mill.bsp | ||
|
||
import java.io.{PrintWriter, StringWriter} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../src/mill/contrib/bsp/MillBspLogger.scala → bsp/src/mill/bsp/MillBspLogger.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mill.contrib.bsp | ||
package mill.bsp | ||
|
||
import ch.epfl.scala.bsp4j._ | ||
import mill.api.Logger | ||
|
6 changes: 3 additions & 3 deletions
6
...rc/mill/contrib/bsp/MillBuildServer.scala → bsp/src/mill/bsp/MillBuildServer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sp/src/mill/contrib/bsp/ModuleUtils.scala → bsp/src/mill/bsp/ModuleUtils.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package mill.contrib.bsp | ||
package mill.bsp | ||
|
||
import ch.epfl.scala.bsp4j._ | ||
import java.net.URL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
contrib/bsp/src/mill/contrib/bsp/Utils.scala → bsp/src/mill/bsp/Utils.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
contrib/bsp/test/src/BspInstallTests.scala → bsp/test/src/BspInstallTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package mill.contrib.bsp | ||
package mill.bsp | ||
|
||
import mill.util.ScriptTestSuite | ||
import os._ | ||
import utest._ | ||
|
||
object BspInstallTests extends ScriptTestSuite(false) { | ||
override def workspaceSlug: String = "gen-idea-hello-world" | ||
override def scriptSourcePath: Path = os.pwd / "contrib" / "bsp" / "test" / "resources" / workspaceSlug | ||
override def scriptSourcePath: Path = os.pwd / "bsp" / "test" / "resources" / workspaceSlug | ||
|
||
def tests: Tests = Tests { | ||
"BSP install" - { | ||
val workspacePath = initWorkspace() | ||
eval("mill.contrib.BSP/install") | ||
eval("mill.bsp.BSP/install") | ||
|
||
assert(exists(workspacePath / ".bsp" /"mill.json")) | ||
assert(exists(workspacePath / ".bsp" / "mill.json")) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters