Skip to content

Commit 26b062e

Browse files
committed
revert: Add back an option to enable bsp in the presentation compiler
1 parent 96849c4 commit 26b062e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

project/Build.scala

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,15 @@ object Build {
448448
) ++ extMap
449449
}
450450

451+
val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse{
452+
val enableBspAllProjectsFile = file(".enable_bsp_all_projects")
453+
enableBspAllProjectsFile.exists()
454+
}
455+
451456
// Settings used when compiling dotty with a non-bootstrapped dotty
452457
lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(
453458
// To enable support of scaladoc and language-server projects you need to change this to true
454-
bspEnabled := false,
459+
bspEnabled := enableBspAllProjects,
455460
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",
456461

457462
version := dottyVersion,
@@ -1261,7 +1266,6 @@ object Build {
12611266
publish / skip := false,
12621267
// Project specific target folder. sbt doesn't like having two projects using the same target folder
12631268
target := target.value / "scala3-library-nonbootstrapped",
1264-
bspEnabled := false,
12651269
)
12661270

12671271
/* Configuration of the org.scala-lang:scala-library:*.**.**-bootstrapped project */
@@ -1339,7 +1343,6 @@ object Build {
13391343
keepSJSIR := false,
13401344
// Generate Scala 3 runtime properties overlay
13411345
Compile / resourceGenerators += generateLibraryProperties.taskValue,
1342-
bspEnabled := false,
13431346
)
13441347

13451348
/* Configuration of the org.scala-lang:scala3-library_3:*.**.**-bootstrapped project */
@@ -2120,7 +2123,7 @@ object Build {
21202123
mtagsSharedSources
21212124
} (Set(mtagsSharedSourceJar)).toSeq
21222125
}.taskValue,
2123-
bspEnabled := false,
2126+
bspEnabled := enableBspAllProjects,
21242127
)
21252128
}
21262129

0 commit comments

Comments
 (0)