Skip to content

Commit 1b9ec53

Browse files
authored
Merge pull request #619 from scala/backport-lts-3.3-24122
Backport "improvement: Additional way of defining ENABLE_BSP_ALL_PROJECTS" to 3.3 LTS
2 parents 5758ebc + 2620ff8 commit 1b9ec53

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
@@ -98,3 +98,6 @@ docs/_spec/.jekyll-metadata
9898

9999
# scaladoc related
100100
scaladoc/output/
101+
102+
# only used in local development
103+
.enable_bsp_all_projects

project/Build.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ object Build {
413413
"scala2-library-tasty"
414414
)
415415

416-
val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse(false)
416+
val enableBspAllProjects = sys.env.get("ENABLE_BSP_ALL_PROJECTS").map(_.toBoolean).getOrElse{
417+
val enableBspAllProjectsFile = file(".enable_bsp_all_projects")
418+
enableBspAllProjectsFile.exists()
419+
}
417420

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

0 commit comments

Comments
 (0)