Skip to content

Commit f2acd0c

Browse files
authored
improvement: Additional way of defining ENABLE_BSP_ALL_PROJECTS (#24122)
Seems that the environment variables are not always picked up, so instead a more reliable solution would be to create file for yourself that can track it instead.
2 parents a7bbe58 + 0606016 commit f2acd0c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,6 @@ docs/_spec/.jekyll-metadata
100100

101101
# scaladoc related
102102
scaladoc/output/
103+
104+
# only used in local development
105+
.enable_bsp_all_projects

project/Build.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ object Build {
459459
) ++ extMap
460460
}
461461

462-
val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse(false)
462+
val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse{
463+
val enableBspAllProjectsFile = file(".enable_bsp_all_projects")
464+
enableBspAllProjectsFile.exists()
465+
}
463466

464467
// Settings used when compiling dotty with a non-bootstrapped dotty
465468
lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(

0 commit comments

Comments
 (0)