Skip to content

Commit f55c22f

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

project/Build.scala

Lines changed: 7 additions & 2 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,
@@ -2120,7 +2125,7 @@ object Build {
21202125
mtagsSharedSources
21212126
} (Set(mtagsSharedSourceJar)).toSeq
21222127
}.taskValue,
2123-
bspEnabled := false,
2128+
bspEnabled := enableBspAllProjects,
21242129
)
21252130
}
21262131

0 commit comments

Comments
 (0)